[1m[36m (0.1ms)[0m [1mbegin transaction[0m 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 [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m 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 [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m 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 [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'orval_sawayn@kshlerinhomenick.com' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:09.266515"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Preference Load (0.2ms)[0m SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/address_requires_state' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:09.333658"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Preference Load (0.1ms)[0m [1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053347804' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R053347804%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053347804' LIMIT 1 [1m[36mSpree::Preference Load (0.1ms)[0m [1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-cdLdCBdqTnaqItH_JkLMw' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:36:09.492849"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 19:36:09.492849"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 886372' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5224' LIMIT 1 [1m[36mSpree::Preference Load (0.1ms)[0m [1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/require_master_price' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5224' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:36:09.537984"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.545692' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.547175' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.591003' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSpree::Preference Load (0.1ms)[0m [1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/binary_inventory_cache' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.696730' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.697360' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.698702' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36mSpree::Preference Load (0.1ms)[0m [1mSELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.714929' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.715745' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.718972"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.720640' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.721255' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.722445' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5224' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Preference Load (0.1ms)[0m SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.761386' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5143' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5143' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 19:36:09.789101"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.791030' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.792104' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.793345' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.797532' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.798036' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.799063' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.803303' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.803797' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.805783"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.806458' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.806899' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.807879' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5143' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.818853' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3337' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3337' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.837227' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.838283' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.839470' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.843684' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.844297' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.845327' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.849519' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.850081' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.853221' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.853762' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.854945' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.5ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3337' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.868934' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1570' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1570' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-4"], ["updated_at", "2014-11-12 19:36:09.886947"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.889242' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.890812' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.892214' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.897095' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.897732' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.899310' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.905133' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.905759' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:09.908157"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.908968' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.909501' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.910691' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1570' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.923254' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.2ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7364' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7364' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.946343' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.947825' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.949159' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:09.954129' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.955066' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.956870' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.961677' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.962390' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:09.965644' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.966130' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:09.967138' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7364' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:09.978411' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.2ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.005050' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.006191' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.007396' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.011113' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.012126' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.013182' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.016702' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.017688' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.018742' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.022698' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.023808' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.024893' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.028416' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.029389' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.030466' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H63551723832%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.037813' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.1ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.179176' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.179844' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.182025' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.182498' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.184481' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.184927' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.186906' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.187389' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.189357' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.189834' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quis et magnam ducimus ut fugiat minus.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 371259' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:36:10.238944"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:10.238944"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:10.247527"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ferne@herzogmiller.name' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:10.268715"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:10.273974"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645331293' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R645331293%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645331293' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gGlTDMlIFI_xsd7a2oA7XQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:36:10.287917"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:36:10.287917"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 95673' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5418' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5418' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.302721' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.304087' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.305742' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.310667' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.311205' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.312298' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.316785' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.317323' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.320175' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.320643' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.321683' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5418' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.332758' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2697' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2697' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:36:10.350365"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.352320' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.353400' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.354627' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.358948' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.359497' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.360600' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.364961' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.365499' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.367626"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.368312' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.368794' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.369837' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2697' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.380647' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3540' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3540' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.398250' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.399332' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.400535' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.404818' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.405338' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.406426' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.410761' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.411263' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.414029' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.414492' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.415537' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3540' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.426347' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2746' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2746' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:36:10.442646"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.444480' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.445582' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.446778' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.451208' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.451721' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.452778' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.457187' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.457698' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.459805"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.460432' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.460894' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.461923' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2746' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.472914' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7075' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7075' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.492515' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.493590' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.494766' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.499033' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.499561' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.500648' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.504968' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.505484' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.508218' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.508709' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.509767' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7075' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.521565' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.537396' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.538569' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.539877' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.543802' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.544910' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.546049' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.550543' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.551751' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.554708' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.561668' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.563316' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.564932' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.568840' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.570141' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.571452' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H14414746710%')[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.575974' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.604242' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.604798' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.623723' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.624227' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.626263' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.626751' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.628727' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.629186' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:10.631152' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.631570' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Qui id unde similique commodi ut eos recusandae natus.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 573524' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:36:10.648647"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:10.648647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:10.651120"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alexander.hegmann@padberg.us' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:10.667951"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:10.673800"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R482953742' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R482953742%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R482953742' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bdciSJ7RpEpBYULVBf6XWw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:36:10.691541"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:36:10.691541"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 124795' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8574' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8574' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.707296' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.708699' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.710119' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.714781' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.715327' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.716437' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.721120' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.722100' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.725071' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.725549' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.726597' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8574' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.738118' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-566' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-566' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:36:10.757193"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.759241' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.760321' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.761569' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.766055' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.766574' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.767707' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.772079' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.772615' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.774813"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.775469' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.775956' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.776998' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-566' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.788131' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-5521' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-5521' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.808264' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.809339' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.810536' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.814858' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.815371' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.816462' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.820775' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.821282' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.824037' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.824505' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.825537' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-5521' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.836439' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-4214' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-4214' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:36:10.853190"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.855346' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.856497' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.857721' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.862158' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.862717' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.863799' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.868144' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.868678' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:10.870829"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.871482' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.871956' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.873055' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-4214' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.883943' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-721' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-721' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.903692' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.904777' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.906017' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.910359' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.910885' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.911965' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.916368' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.916886' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.919668' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.920119' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.921235' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-721' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.932261' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.947266' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.948397' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.949644' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.953531' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.954591' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.955713' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.960003' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.961161' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.963552' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.970888' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.972545' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.974107' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:10.978208' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:10.979392' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:10.980620' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07574760788%')[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:10.984707' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.011305' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.011890' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.013942' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.014398' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.016372' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.016839' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.018803' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.019257' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.021240' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.021699' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Voluptas similique sint aut occaecati aut et.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 284771' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:36:11.038664"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:11.038664"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:11.041101"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearline_boyer@veumfadel.info' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:11.058680"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.064515"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311930834' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311930834%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311930834' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'G30D5QMxSu0-JiK9odEYrA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:36:11.092029"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:36:11.092029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 267773' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-1085' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-1085' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.106506' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.107622' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.108878' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.113343' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.113896' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.115015' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.119567' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.120109' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.122951' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.123443' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.124493' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-1085' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.135932' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-9183' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-9183' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:36:11.154015"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.156037' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.157108' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.158392' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.163041' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.163582' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.164658' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.169257' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.169781' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.171905"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.172563' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.173044' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.174094' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-9183' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.185162' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-6681' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-6681' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.203378' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.204438' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.205655' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.209909' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.210435' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.211518' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.215914' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.216394' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.219126' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.219594' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.220635' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-6681' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.231437' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-6074' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-6074' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:36:11.250012"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.251874' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.252924' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.254101' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.258343' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.258861' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.259922' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.264287' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.264801' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.266891"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.267553' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.268020' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.269091' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-6074' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.279818' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-6268' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-6268' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.298387' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.299467' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.300654' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.304879' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.305398' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.306455' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.310830' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.311346' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.314053' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.314505' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.315544' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-6268' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.326278' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.340882' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.341981' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.343153' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.346914' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.347938' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.349043' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.352714' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.353720' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.354812' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.358860' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.359994' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.361148' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.364753' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.365766' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.367507' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H53288144554%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.375362' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.403419' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.404023' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.406063' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.406515' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.408455' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.408921' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.410896' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.411353' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.413297' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.413744' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Est hic ut blanditiis a omnis.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 43947' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:36:11.430666"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:11.430666"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:11.433053"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ulises_fadel@oconnellwuckert.ca' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:11.450605"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.456206"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030074452' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R030074452%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030074452' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-d3Gg_g2X_xQwlzjG22gWg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:36:11.471508"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:36:11.471508"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 208508' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-5607' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-5607' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.486733' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.487871' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.489172' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.493964' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.494757' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.496100' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.501031' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.501593' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.504584' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.505093' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.506205' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-5607' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.529859' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9776' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9776' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:36:11.548162"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.550132' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.551231' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.552448' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.556827' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.557360' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.558579' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.563330' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.563881' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.566013"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.566689' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.567185' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.568250' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9776' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.579528' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-3989' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-3989' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.598290' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.599361' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.600587' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.604928' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.605457' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.606534' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.610869' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.611394' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.614142' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.614592' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.615659' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.3ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-3989' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.631349' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9319' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9319' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:36:11.649638"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.651502' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.652563' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.653766' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.658126' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.658658' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.659705' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.664012' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.664516' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.666616"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.667271' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.667730' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.668741' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9319' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.679611' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-9340' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-9340' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.697717' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.698796' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.700023' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.704446' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.704974' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.706040' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.710712' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.711250' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.714040' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.714530' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.715609' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-9340' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.726738' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.741379' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.742517' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.743712' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.747521' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.748547' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.749647' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.753302' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.754340' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.755419' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.759437' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.760595' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.761949' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.765623' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.766657' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.767788' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H68322478677%')[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.772033' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.803783' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.804348' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.806390' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.806872' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.808813' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.809309' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.811234' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.811702' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:11.813711' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.814185' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Illo omnis est officia odio quis.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 694938' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:36:11.830759"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:11.830759"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:11.833191"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sean_donnelly@kleinblanda.ca' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:36:11.854069"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.3ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:36:11.863678"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153625823' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153625823%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153625823' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xYxsbU0n37G_hqAbO1fv8w' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:36:11.884460"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:36:11.884460"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 725510' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-2760' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-2760' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.899598' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.900847' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.902225' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.906832' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.907395' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.908556' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.913176' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.913753' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.917071' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.917625' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.918864' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-2760' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.930445' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-4542' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-4542' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:36:11.947677"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.949720' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.950831' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.952097' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:11.968890' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.969506' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.970720' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.975156' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.975741' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:11.977938"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:11.978609' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.979069' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:11.980121' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-4542' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:11.996261' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-227' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-227' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.016776' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.017829' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.019038' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.023254' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.023780' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.024879' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.3ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.029392' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.029929' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.032636' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.033091' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.034116' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-227' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.049457' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-4445' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-4445' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:36:12.067619"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.069509' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.070590' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.071791' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.076124' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.076650' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.077728' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.082272' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.082769' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:36:12.085105"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.085738' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.086199' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.087306' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-4445' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.098511' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-8' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-8' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.117768' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.118803' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.119994' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.124259' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.124783' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.125865' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.130141' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.130650' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.133440' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.133891' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.134950' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-8' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.146041' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.160762' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.161884' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.163124' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.166908' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.167949' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.169026' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.172684' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.173706' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.174848' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.179100' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.180270' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.181401' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:36:12.185046' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:36:12.186050' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:36:12.187330' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H74652655265%')[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.191491' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.217678' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.218255' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.220323' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.220788' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.222691' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.223152' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.225100' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.225561' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:36:12.227491' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:36:12.227968' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Recusandae est error praesentium neque.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 73645' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:36:12.244364"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:36:12.244364"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:36:12.246689"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (5.3ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mary_toy@crist.us' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:41.060944"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R409427301' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R409427301%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R409427301' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JNTTp8l4Bsp3K1XAp8aK6g' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-692' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-692' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:37:41.209090"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.216449' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.217700' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.231436' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.340399' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.340980' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.342200' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.353283' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.353899' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.356216"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.357439' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.357928' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.358965' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.2ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-692' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.398412' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1936' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1936' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.426762' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.427793' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.428978' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.433223' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.433757' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.434824' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.439151' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.439693' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.442441' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.442922' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.443989' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1936' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.458928' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1377' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1377' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:37:41.478128"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.480164' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.481166' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.482508' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.486652' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.487142' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.488278' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.492492' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.492992' WHERE 1=0 [1m[36mSQL (0.5ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.495416"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.496054' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.496474' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.497437' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1377' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.512371' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7913' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7913' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.532057' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.533091' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.534278' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.538438' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.538910' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.540067' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.544454' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.544947' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.547528' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.547954' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.548939' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7913' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.559164' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4316' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4316' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:37:41.576370"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.578182' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.579197' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.580360' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.584370' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.584841' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.585875' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.590005' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.590481' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.592389"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.593020' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.593435' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.594390' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4316' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.608463' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.641931' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.643094' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.644408' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.648435' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.649415' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.650529' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.654128' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.655112' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.656183' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.660019' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.661113' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.662233' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.665684' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.666628' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.667825' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H41664880610%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.674824' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:37:41.747443"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:41.747443"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.794045' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.794779' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.797122' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.797619' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.799573' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.800025' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.802015' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.802501' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:41.806702' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.807613' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.2ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Hic quo pariatur asperiores sed.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'greg@schuster.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:41.891741"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194511379' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R194511379%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194511379' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Fpr2NraL8KGXsOvxnXCd7g' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-503' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-503' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:37:41.924995"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.927009' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.928096' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.929359' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.934280' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.934859' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.936041' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.940527' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.941089' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:41.943183"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.943847' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.944319' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.945398' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-503' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:41.956625' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3176' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3176' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.975522' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.976595' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.977790' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:41.982056' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.982567' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.983641' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.987924' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.988448' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:41.991292' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.991781' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:41.992823' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3176' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.003813' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-209' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-209' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:37:42.021236"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.023054' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.024127' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.025390' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.029591' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.030108' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.031289' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.036485' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.037088' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.039419"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.040157' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.040662' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.041800' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-209' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.053533' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.2ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5948' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5948' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.075554' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.076866' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.079028' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.084245' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.084875' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.086213' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.091433' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.092130' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.095389' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.095940' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.097215' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5948' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.109733' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2914' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2914' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:37:42.131394"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.134026' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.135903' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.137415' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.142236' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.142868' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.144111' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.148516' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.149028' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.151102"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.151815' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.152364' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.153834' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2914' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.165485' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.4ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.186526' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.187698' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.188951' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.193003' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.194143' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.195384' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.3ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.199472' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.202470' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.204747' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.210970' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.212414' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.213572' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.217596' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.218841' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.220160' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H26137072564%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.224313' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:37:42.247452"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:42.247452"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.257298' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.257993' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.260127' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.260608' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.262653' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.263112' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.280231' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.280835' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.283119' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.283622' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Dolore qui asperiores rerum sit sapiente corporis molestias quis.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leopold_schulist@waelchi.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:42.326354"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R755844314' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R755844314%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R755844314' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bjf7vRLND4_zJRWD5UlWFg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-771' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-771' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:37:42.358394"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.360328' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.361477' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.362736' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.367072' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.368599' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.371432' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.378960' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.379691' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.381995"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.382717' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.383234' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.384253' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-771' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.395400' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-6330' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-6330' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.414294' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.415344' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.416565' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.420814' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.421298' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.422367' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.426654' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.427188' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.429816' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.430286' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.431281' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-6330' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.441898' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-744' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-744' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:37:42.459081"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.460909' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.461929' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.463155' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.467374' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.467947' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.469047' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.473417' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.473935' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.475984"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.476597' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.477037' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.478084' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-744' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.493056' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-8888' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-8888' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.511734' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.512766' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.514008' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.518233' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.518728' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.519827' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.524097' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.524592' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.527236' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.527680' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.528762' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-8888' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.544369' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-6852' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-6852' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:37:42.561504"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.563356' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.564455' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.565644' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.569847' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.570382' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.571497' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.575760' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.576260' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.578286"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.578889' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.579403' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.580521' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-6852' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.595616' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.611840' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.613061' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.614314' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.618081' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.619116' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.620275' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.623832' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.624844' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.625954' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.630018' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.631187' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.632353' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.635952' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.636951' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.638069' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H35447178078%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.642331' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:37:42.659413"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:42.659413"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.668684' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.669285' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.671313' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.671760' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.673688' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.674135' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.676042' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.676496' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:42.678488' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.678945' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Ut molestiae perferendis dolorum molestias voluptas doloremque.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jenifer@eichmann.biz' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:42.720370"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.3ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R418101679' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R418101679%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R418101679' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0NOM63Nu2_VQq_MsA6cYzg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-9827' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-9827' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:37:42.770442"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.772483' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.773596' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.774870' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.779212' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.779719' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.780839' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.785309' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.785871' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.788032"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.788725' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.789196' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.790262' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-9827' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.801533' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-8961' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-8961' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.821619' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.822669' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.823939' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.828203' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.828710' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.829791' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.834102' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.834657' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.837398' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.837862' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.838879' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-8961' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.849740' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-6641' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-6641' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:37:42.865591"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.867429' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.868445' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.869651' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.873805' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.874292' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.875373' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.879738' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.880236' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.882255"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.882846' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.883283' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.884294' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-6641' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.3ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.897214' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-284' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-284' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.921312' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.922445' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.923791' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.928127' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.928650' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.929765' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.934052' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.934566' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.937226' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.937661' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.938685' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-284' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.949384' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-5195' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-5195' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:37:42.964936"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.966849' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.967881' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.969088' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:42.973265' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.973746' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.974855' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.979152' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.979644' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:42.981665"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:42.982276' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.982725' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:42.983764' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-5195' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:42.998400' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.014553' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.015706' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.016943' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.020789' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.021986' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.023073' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.026688' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.027742' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.028852' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.032994' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.034115' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.035249' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.038841' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.039886' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.041372' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H32222440007%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.049455' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:37:43.067812"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:43.067812"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.077012' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.077581' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.079571' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.080020' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.081883' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.082317' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.084197' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.084640' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.086615' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.087060' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Esse ea voluptates mollitia inventore est.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dave_ritchie@breitenbergkohler.us' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:43.127915"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R336360709' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R336360709%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R336360709' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hrNucw0oJfhrd18CEf-0tA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-4121' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-4121' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:37:43.163043"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.165060' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.166213' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.167491' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.171953' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.172452' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.173577' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.178108' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.178670' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.180766"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.181478' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.181953' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.183030' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-4121' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.194315' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-7113' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-7113' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.230078' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.231131' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.232351' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.236956' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.237510' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.238752' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.243102' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.243646' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.246427' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.246890' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.247939' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-7113' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.258693' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-6419' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-6419' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:37:43.274205"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.276062' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.277096' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.278344' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.282672' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.283143' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.284276' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.288603' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.289139' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.291160"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.291763' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.292225' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.293273' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-6419' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.303868' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9659' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9659' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.321123' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.322277' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.323491' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.327870' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.328409' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.329484' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.333705' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.334251' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.337035' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.337485' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.338499' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9659' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.349177' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-275' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-275' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:37:43.366109"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.367964' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.369057' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.370313' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.374663' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.375185' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.376309' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.380598' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.381184' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.383327"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.383967' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.384428' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.385463' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-275' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.396049' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.410667' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.411742' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.412998' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.416725' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.417789' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.419058' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.422609' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.423592' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.3ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.424977' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.432887' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.434551' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.436301' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.440702' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.441804' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.443057' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H83770731866%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.446844' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:37:43.463713"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:43.463713"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.472920' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.473490' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.475633' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.476147' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.478066' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.478515' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.480389' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.480835' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.482732' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.483178' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'A inventore temporibus soluta quisquam fuga eos repellendus.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'estelle@marvin.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:37:43.520571"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656829701' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R656829701%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656829701' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1FS22QiEmdJNC63f1cy9Ug' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-1969' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-1969' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:37:43.553306"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.555356' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.556458' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.557852' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.563121' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.563677' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.564809' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.569385' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.569924' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.572030"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.572712' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.573185' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.574235' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-1969' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.585367' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-8542' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-8542' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.603133' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.604221' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.605462' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.609826' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.610320' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.611420' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.615777' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.616299' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.634199' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.635086' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.636886' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-8542' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.647962' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-1908' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-1908' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:37:43.666461"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.668383' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.669416' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.670636' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.674869' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.675372' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.676464' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.680989' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.681534' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.683617"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.684252' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.684687' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.685734' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-1908' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.696662' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-2176' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-2176' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.715603' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.716629' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.717846' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.722006' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.722513' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.723567' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.727851' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.728351' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.731001' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.731465' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.732550' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-2176' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.743836' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-7299' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-7299' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:37:43.760823"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.762659' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.763705' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.764957' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.769213' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.769702' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.770799' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.775038' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.775529' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:37:43.777541"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.778135' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.778575' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.779588' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-7299' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.790280' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.805151' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.806249' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.807460' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.811192' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.812194' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.813280' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.816783' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.817765' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.818873' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.826601' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.828210' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.830015' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:37:43.834521' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:37:43.835671' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:37:43.836899' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H05806486532%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.840941' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:37:43.857825"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:37:43.857825"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.866983' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.867563' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.869581' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.870028' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.871901' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.872338' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.874202' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.874652' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:37:43.876534' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:37:43.876981' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Expedita illo sed sed laudantium et reprehenderit quia perferendis.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angeline@dickens.us' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:42:53.038629"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R467644642' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R467644642%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R467644642' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 't8UwjrBJZVI3g2ASSA-Gxg' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6921' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6921' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:42:53.188369"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.196035' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.197309' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.211163' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.235371' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.235963' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.237083' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.247992' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.248595' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.250880"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.252090' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.252573' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.253584' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6921' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.345787' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9881' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9881' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.369791' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.370938' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.372158' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.376497' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.377014' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.378115' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.382445' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.383042' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.385892' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.386363' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.387379' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9881' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.398310' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2987' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2987' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:42:53.415153"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.417087' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.418160' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.419399' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.423593' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.424126' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.425175' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.429425' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.429929' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.432109"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.432767' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.433249' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.434251' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2987' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.449398' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-963' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-963' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.470022' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.471064' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.472291' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.476487' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.477004' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.478058' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.482349' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.482879' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.485722' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.486184' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.487205' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-963' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.498122' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-5431' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-5431' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:42:53.514617"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.516530' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.517587' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.518840' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.523527' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.524081' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.525215' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.529687' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.530295' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:42:53.532507"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.533225' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.533740' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.534821' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-5431' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.545738' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.572867' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.574117' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.575440' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.579356' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.580394' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.581485' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.585154' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.586155' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.587282' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.591307' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.592467' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.593785' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:42:53.597746' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:42:53.598807' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:42:53.600052' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H84513617467%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.607447' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:42:53.676715"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:42:53.676715"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.709854' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.710514' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.712722' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.713171' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.715113' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.715551' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.717530' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.717982' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:42:53.719981' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:42:53.720451' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Nesciunt enim consectetur rem sed dolore optio ut non.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'martina@weissnat.name' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:44:19.105222"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311621360' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311621360%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311621360' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CGTWfPsow3D0l4jdrCG9IA' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5646' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5646' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:44:19.253268"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.260547' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.261814' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.275042' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.298891' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.299465' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.300636' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.311503' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.312093' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.314329"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.315456' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.315919' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.316922' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5646' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.402129' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-2461' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-2461' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.424786' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.425861' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.427109' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.431595' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.432132' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.433258' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.437643' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.438181' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.440968' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.0ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.441416' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.442414' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-2461' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.453160' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2020' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2020' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:44:19.471187"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.473143' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.474200' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.475393' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.479649' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.480120' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.481169' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.485415' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.485967' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.488177"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.488824' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.489259' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.490268' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2020' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.505391' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8390' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8390' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.524494' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.525573' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.526890' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.531193' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.531681' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.532816' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.537219' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.537752' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.540572' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.541034' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.542068' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8390' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.557359' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9574' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9574' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:44:19.574162"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.576132' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.577174' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.578425' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.582781' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.583261' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.584367' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.588974' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.589498' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:44:19.591684"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.592362' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.592797' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.593852' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9574' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.604836' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.632579' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.633780' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.635059' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.639061' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.640119' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.641313' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.645060' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.646099' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.647323' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.651552' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.652733' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.653874' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:44:19.657525' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:44:19.658560' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:44:19.659839' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H10414544541%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.667481' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:44:19.736888"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:44:19.736888"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.768923' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.769609' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.771745' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.772241' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.774182' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.774641' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.776613' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.777073' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:44:19.779055' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:44:19.779512' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Ex culpa dolores in exercitationem vel et earum.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'giovanny@oberbrunnerdubuque.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:45:44.992997"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642854022' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R642854022%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642854022' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LLf4aOZoO52tVnJwcSnVdQ' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5111' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5111' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:45:45.141815"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.149221' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.150489' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.164045' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.187619' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.188203' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.189318' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.199862' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.200468' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.202627"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.203769' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.204227' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.205201' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5111' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.239669' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-745' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-745' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.316080' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.317134' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.318409' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.322811' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.323314' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.324395' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.328753' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.329302' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.332034' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.332485' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.333455' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-745' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.343879' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5094' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5094' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:45:45.359654"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.361476' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.362502' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.363665' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.367909' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.368383' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.369448' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.373613' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.374117' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.376148"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.376880' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.377350' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.378319' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5094' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.388791' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3380' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3380' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.405967' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.406962' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.408169' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.412381' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.412913' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.413998' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.418279' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.418792' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.421549' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.421999' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.423026' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3380' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.433871' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4697' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4697' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:45:45.450668"]] [1m[35mSpree::Variant Load (0.4ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.452802' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.453863' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.455213' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.459830' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.460359' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.461393' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.465905' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.466416' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:45:45.468442"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.469105' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.469569' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.470556' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4697' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.481949' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.508880' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.510011' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.511223' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.515013' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.515985' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.517083' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.520692' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.521716' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.523946' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.531332' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.533023' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.534600' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:45.538812' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:45.539964' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:45:45.541232' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H57016857231%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.548599' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:45:45.634963"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:45:45.634963"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.667037' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.667678' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.669738' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.670171' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.672151' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.672589' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.674472' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.674890' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:45:45.676838' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:45:45.677271' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Impedit aut quisquam vel temporibus dolores est laboriosam.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'watson@ortiz.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:45:59.836654"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236110227' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R236110227%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236110227' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QR1jd9m-9WVTnJ5EQU5d6A' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9762' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9762' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:45:59.988817"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:45:59.996333' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:45:59.997621' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.017346' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.041317' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.041922' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.043073' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.054324' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.054937' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.057305"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.058580' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.059141' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.060466' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9762' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.093485' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1833' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1833' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.168414' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.169519' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.170800' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.175268' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.175769' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.176919' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.181361' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.181918' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.184708' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.0ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.185183' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.0ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.186200' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1833' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.196825' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2781' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2781' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:46:00.213731"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.215674' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.216765' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.217969' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.222483' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.223001' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.224215' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.228621' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.229112' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.231192"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.231860' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.232375' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.233420' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2781' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.244322' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4327' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4327' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.263833' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.264997' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.266187' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.270636' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.271120' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.272268' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.276752' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.277299' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.280081' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.280547' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.281566' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4327' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.292702' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-4337' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-4337' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:46:00.308915"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.310805' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.311995' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.313278' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.317751' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.318260' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.319348' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.2ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.324028' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.324582' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.326670"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.327346' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.327814' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.328892' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-4337' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.339709' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.367963' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.369160' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.370453' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.374461' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.375586' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.376841' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.380938' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.381999' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.383288' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.387456' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.388554' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.389689' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.393449' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.394507' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.395722' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H75612360782%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.403572' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:00.478724"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:00.478724"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.512239' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.513760' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.518158' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.518908' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.522071' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.522719' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.525118' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.525556' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.527489' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.527986' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Accusamus velit nulla perspiciatis hic.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'karlee_heaney@dickinsonroob.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:00.624765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R065925489' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R065925489%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R065925489' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'k4fzLqoeKYizNNsfPJdjkg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9536' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9536' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:46:00.655545"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.657643' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.658743' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.660041' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.664434' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.664952' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.666019' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.671060' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.671610' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.673737"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.674420' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.674864' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.675879' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9536' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.686926' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6581' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6581' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.708365' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.709476' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.710704' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.715013' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.715540' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.716657' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.721070' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.721682' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.724528' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.725015' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.726049' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6581' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.736787' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-6991' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-6991' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:46:00.754857"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.756771' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.757830' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.759061' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.763323' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.763811' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.764914' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.769225' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.769750' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.771852"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.772507' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.772959' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.773974' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-6991' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.784683' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2462' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2462' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.804965' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.806005' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.807190' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.811504' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.812064' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.813226' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.817854' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.818373' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.821122' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.821602' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.822642' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2462' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.834012' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2523' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2523' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:46:00.852043"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.853904' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.854969' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.856172' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.860685' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.861199' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.862399' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.867594' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.868122' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:00.870395"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.871439' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.871898' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.872931' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2523' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.884404' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.899698' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.900808' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.902037' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.905963' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.906987' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.908144' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.911886' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.912892' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.2ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.914232' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.918406' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.919554' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.920688' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:00.924470' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:00.925482' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:00.926686' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H52832768621%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.931025' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:00.948832"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:00.948832"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.958347' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.958938' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.960977' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.961429' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.963325' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.963761' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.965703' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.966183' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:00.968173' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:00.968637' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quo voluptatum itaque esse corporis cupiditate.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'monty@willms.com' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.011913"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R319278881' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R319278881%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R319278881' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'M-Z92hpvIEp7u-trY5SRRQ' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8074' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8074' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:46:01.047258"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.049315' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.050483' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.051814' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.056371' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.056910' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.058078' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.062740' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.063315' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.065574"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.066291' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.066773' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.081872' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8074' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.093694' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-452' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-452' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.114995' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.116104' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.117335' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.121659' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.122158' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.123265' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.128081' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.128631' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.131552' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.132066' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.133156' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-452' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.4ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.144255' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-9949' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-9949' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:46:01.162005"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.163860' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.164988' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.166256' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.170571' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.171063' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.172133' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.176457' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.176990' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.179062"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.179694' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.180151' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.181187' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-9949' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.192165' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-1747' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-1747' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.212571' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.213635' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.214883' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.219226' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.219734' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.220813' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.225177' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.225733' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.228466' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.228939' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.229964' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-1747' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.240832' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-1149' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-1149' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:46:01.256391"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.258348' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.259415' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.260676' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.265076' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.265619' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.266714' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.271167' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.271699' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.273778"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.274417' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.274868' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.275880' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-1149' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.286674' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.301693' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.302801' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.303988' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.307802' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.308850' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.309986' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.313634' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.314687' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.315805' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.319970' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.321061' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.322197' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.325831' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.326824' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.327961' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H18831375180%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.332226' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:01.348732"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:01.348732"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.358293' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.358903' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.360925' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.361411' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.363374' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.363818' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.365744' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.366215' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.368077' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.368513' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quo qui distinctio necessitatibus architecto.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gordon_mccullough@auerritchie.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.413932"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R613377909' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R613377909%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R613377909' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3M3EO_iUzuwgu3UjEjVarQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-525' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-525' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:46:01.445865"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.447892' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.449059' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.450338' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.454792' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.455311' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.456409' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.460925' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.461528' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.463674"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.464368' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.464843' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.465910' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-525' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.477022' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-8004' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-8004' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.496426' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.497719' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.499175' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.503694' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.504323' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.505545' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.510222' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.510779' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.513621' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.514152' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.515331' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-8004' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.538174' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-5596' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-5596' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:46:01.554326"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.556216' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.557295' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.558541' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.562943' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.563432' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.564519' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.568860' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.569422' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.571520"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.572162' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.572621' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.573625' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-5596' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.584425' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-2287' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-2287' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.603069' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.604177' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.605477' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.609820' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.610335' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.611413' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.615733' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.616252' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.618948' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.619411' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.620410' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-2287' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.635979' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-4100' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-4100' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:46:01.652255"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.654159' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.655246' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.656527' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.660955' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.661443' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.662548' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.666956' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.667501' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.669602"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.670245' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.670731' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.671787' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-4100' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.682837' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.697567' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.698700' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.699943' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.703858' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.704908' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.706115' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.709822' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.710865' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.711979' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.716156' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.717272' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.718457' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.722164' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.723194' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.724381' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H16562551105%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.728736' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:01.745482"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:01.745482"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.754764' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.755387' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.757423' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.757940' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.762510' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.763449' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.766946' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.767664' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:01.770585' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.771202' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Ipsam repudiandae omnis qui voluptatem.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'edgar@terry.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:01.808814"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R437597379' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R437597379%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R437597379' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cahlZWBFZxahNup_ZPfuIg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-7499' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-7499' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:46:01.841348"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.843512' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.844696' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.846042' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.850849' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.851434' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.852575' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.857118' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.857650' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.859814"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.860537' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.861025' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.862072' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-7499' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.873219' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-3489' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-3489' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.892139' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.893265' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.894490' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.898892' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.899454' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.900554' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.904957' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.905502' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.908411' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.908885' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.909950' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-3489' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.925398' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-204' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-204' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:46:01.943502"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.945396' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.946490' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.947716' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:01.952072' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.952594' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.953770' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.958372' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.958917' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:01.961083"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:01.961749' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.962218' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:01.963256' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-204' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:01.986051' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-7505' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-7505' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.005284' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.006403' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.007587' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.015337' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.016400' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.018189' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.024169' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.024710' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.027796' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.028307' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.029395' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-7505' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.045026' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-9652' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-9652' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:46:02.063151"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.065001' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.066058' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.067266' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.072173' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.072688' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.073784' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.078125' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.078653' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.080703"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.081357' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.081821' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.082853' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-9652' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.093647' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.108541' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.109690' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.110912' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.115174' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.116317' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.117503' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.121321' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.122367' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.123582' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.127716' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.128831' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.129957' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.133641' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.134704' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.135863' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07025731727%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.140288' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:02.157156"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:02.157156"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.166515' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.167117' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.169137' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.169593' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.171517' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.171988' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.173912' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.174363' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.176284' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.176737' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Maiores est culpa alias sapiente est officia sit placeat.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chase@moore.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:02.219011"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R014605584' LIMIT 1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R014605584%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R014605584' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'puXn4KCIpM7LM5NRorlZ9Q' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-1094' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-1094' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:46:02.258848"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.262714' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.265039' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.267383' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.273691' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.274219' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.275327' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.279831' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.280376' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.282564"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.283288' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.283798' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.284899' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-1094' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.296067' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-983' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-983' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.314211' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.315317' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.316616' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.321458' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.322021' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.323124' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.327473' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.328018' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.330804' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.331279' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.332289' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-983' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.343084' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-8021' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-8021' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:46:02.359362"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.361400' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.362528' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.363787' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.368231' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.368746' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.369839' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.374233' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.374750' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.376885"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.377542' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.378004' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.379058' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-8021' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.394663' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-2724' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-2724' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.416491' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.417674' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.419120' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.423635' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.424192' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.425336' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.430164' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.430765' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.433851' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.434340' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.448458' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-2724' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.459373' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-9777' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-9777' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:46:02.474941"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.476801' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.477977' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.479184' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.483457' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.483959' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.485026' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.489383' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.489885' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.491988"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.492642' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.493101' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.494119' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-9777' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.509283' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.525146' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.526269' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.527527' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.531355' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.532364' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.533453' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.537104' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.538134' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.539235' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.543234' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.544377' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.545577' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.549251' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.550266' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.551457' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H25508563377%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.555877' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:02.572490"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:02.572490"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.581995' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.582589' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.584602' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.585066' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.586956' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.587415' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.589333' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.589771' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:02.591673' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.592138' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Quo iste harum iure accusantium.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (5.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'eula@kuphalkutch.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:46:02.638675"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R365032734' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R365032734%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R365032734' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'X-Xr5aD7vSQXPqIY37jiPQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-31-2114' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-31-2114' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-31' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-31"], ["updated_at", "2014-11-12 19:46:02.675382"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.677405' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.678580' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.679981' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.685283' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.685898' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.687151' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.692185' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.692759' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.695133"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.695998' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.696638' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.698015' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-31-2114' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.709693' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-32-1539' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-32-1539' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-32' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.731119' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.733823' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.736504' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.743714' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.744456' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.745675' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.750828' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.751417' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.754315' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.754790' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.755869' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-32-1539' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.772000' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-33-9021' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-33-9021' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-33' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-33"], ["updated_at", "2014-11-12 19:46:02.788995"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.790870' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.791961' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.793208' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.798133' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.798842' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.800108' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.804640' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.805182' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.807277"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.807923' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.808385' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.809464' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.4ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-33-9021' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.826012' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-34-5877' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-34-5877' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-34' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.847410' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.849053' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.850440' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.855064' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.855676' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.857046' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.861824' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.862362' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.865813' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.866422' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.868185' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-34-5877' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.879979' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-35-8742' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-35-8742' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-35' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-35"], ["updated_at", "2014-11-12 19:46:02.909429"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.911330' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.912420' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.913617' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.917818' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.918330' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.919397' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.923939' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.924475' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:46:02.926621"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.927282' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.927774' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.928765' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-35-8742' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.939535' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.954133' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.955246' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.956451' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.960229' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.961245' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.962356' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.965906' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.966891' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.967973' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.972068' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.973136' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.974297' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:46:02.977868' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:46:02.978850' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:46:02.979927' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H54852150507%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:02.984252' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:46:03.000515"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:46:03.000515"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.009537' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.010102' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.012096' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.012537' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.014495' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.014949' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.016863' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.017330' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:46:03.019221' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:46:03.019676' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Dolore et inventore consequatur est.' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 2]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_rates" ("amount", "created_at", "tax_category_id", "updated_at", "zone_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nick@rutherfordshields.info' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:06.750588"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R820681399' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R820681399%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R820681399' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'X8BufbN_DlHok848eDgzIw' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6143' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6143' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:47:06.889474"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:06.896768' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.898011' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.911464' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:06.934735' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.935320' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.936538' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.946943' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.947532' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:06.949715"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:06.950832' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.951319' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:06.952317' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6143' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:06.989896' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-263' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-263' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.070090' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.071128' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.072409' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.076703' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.077185' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.078280' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.082657' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.083254' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.086026' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.086463' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.087569' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-263' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.098218' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-8410' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-8410' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:47:07.114835"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.116635' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.117646' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.118951' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.123176' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.123682' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.124767' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.129124' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.129598' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.131646"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.132301' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.132746' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.133746' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-8410' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.149109' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5008' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5008' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.167648' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.168695' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.169891' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.174166' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.174632' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.175744' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.179964' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.180475' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.183191' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.183638' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.184662' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5008' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.200149' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2619' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2619' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:47:07.217587"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.219465' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.220538' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.221764' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.226117' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.226635' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.227707' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.232057' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.232584' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.234710"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.235384' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.235856' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.236911' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.3ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2619' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.254758' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.281526' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.282681' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.283892' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.287767' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.288822' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.289972' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.293738' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.294743' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.295881' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.300126' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.301180' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.302347' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.306035' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.307057' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.308527' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07271432584%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.315974' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:07.383856"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:07.383856"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.415694' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.416331' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.418421' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.418906' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.420850' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.421289' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.423194' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.423645' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.425537' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.425991' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.4ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyson.murray@simoniswiza.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.469923"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153423385' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153423385%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153423385' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XIK7BKYI6UmFZAzSj_Dcfg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-453' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-453' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-6"], ["updated_at", "2014-11-12 19:47:07.502865"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.504940' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.506146' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.507419' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.511874' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.512369' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.513387' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.534401' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.534996' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.537172"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.537813' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.538287' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.539353' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-453' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.555006' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3250' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3250' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.573574' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.574649' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.575893' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.580150' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.580673' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.581763' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.586037' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.586570' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.589319' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.589801' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.590859' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3250' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.601535' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2140' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2140' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-8"], ["updated_at", "2014-11-12 19:47:07.617820"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.619675' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.620699' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.622057' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.626716' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.627234' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.628307' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.632509' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.633027' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.635399"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.636107' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.636583' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.637728' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2140' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.648723' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7457' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7457' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.669237' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.670295' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.671573' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.675839' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.676370' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.677472' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.681888' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.682498' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.685539' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.686017' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.687220' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.3ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7457' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.704230' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4583' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4583' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-10"], ["updated_at", "2014-11-12 19:47:07.722411"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.724343' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.725440' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.726693' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.730961' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.731450' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.732591' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.736954' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.737518' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:07.739710"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.740385' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.740886' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.741980' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4583' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.753139' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.768050' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.769171' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.770366' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.774231' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.775286' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.776388' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.780111' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.781144' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.782258' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.790430' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.792112' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.793851' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:07.798647' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:07.799812' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:07.800958' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H10725120831%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.805128' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:07.823072"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:07.823072"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.832555' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.833132' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.835127' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.835671' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.837686' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.838164' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.840194' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.840641' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:07.842646' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.843076' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ella_hessel@jonesbogisich.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R627483732' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R627483732%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R627483732' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tFPQWtGqetMIU1Qh5DTJCQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KHPRGVXJ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:07.917282' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.3ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.2ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.1ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (4.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jessie.bergstrom@lockmanwitting.us' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:07.970164"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:07.977854"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478783559' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R478783559%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478783559' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xotTo3DpMbXpXWUtANxgKw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:07.993768"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 19:47:07.993768"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 118100' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-6624' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-6624' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.027021' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.028141' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.029426' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.034005' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.034492' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.035643' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.040110' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.040647' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.043360' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.043881' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.044913' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-6624' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.056098' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1818' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1818' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 19:47:08.072603"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.074554' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.075669' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.076908' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.081305' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.081798' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.082857' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.087268' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.087778' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.089891"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.090536' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.090971' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.092067' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1818' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.102915' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-5925' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-5925' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.120656' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.121679' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.122848' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.127190' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.127681' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.128788' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.133049' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.133572' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.136293' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.136757' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.137799' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-5925' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.148797' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-4042' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-4042' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-14"], ["updated_at", "2014-11-12 19:47:08.168618"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.171889' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.173559' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.175316' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.179936' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.180455' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.181572' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.185954' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.186470' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.188603"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.189239' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.189700' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.190812' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-4042' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.206020' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-8754' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-8754' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.226270' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.227325' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.228522' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.3ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.236928' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.237761' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.239533' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.244888' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.245425' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.248233' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.248717' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.249789' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-8754' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.260739' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.281419' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.282541' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.283749' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.287687' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.288773' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.289944' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.293672' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.294708' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.295836' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.299988' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.301152' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.302364' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.306162' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.307245' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.308485' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H12020763660%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.312941' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.345127' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.345718' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.347791' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.348292' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.350326' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.350822' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.352841' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.353309' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.355298' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.355728' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'arjun.hilll@shields.com' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.375476"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088766134' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R088766134%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088766134' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KLZhIuCfGH9P5RDw1dkwIQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V464CU5A' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.387046' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-551310"], ["updated_at", "2014-11-12 19:47:08.388224"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rachael@armstrong.info' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.412059"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R296279578' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R296279578%')[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R296279578' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'teqHy5fq5mA34FgqpKn31w' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-9331' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-9331' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-16"], ["updated_at", "2014-11-12 19:47:08.448829"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.450816' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.451918' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.453201' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.458399' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.458988' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.460174' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.464762' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.465324' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.467526"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.468186' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.468677' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.469903' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-9331' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.493756' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-9063' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-9063' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.512709' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.513779' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.514969' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.519297' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.519829' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.520944' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.525172' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.525758' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.528574' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.529069' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.530126' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-9063' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.540796' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-7639' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-7639' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-18"], ["updated_at", "2014-11-12 19:47:08.557860"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.559725' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.560793' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.561994' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.566188' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.566712' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.567791' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.572007' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.572520' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.574691"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.575333' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.575841' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.576919' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-7639' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.587584' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-669' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-669' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.604687' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.605748' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.606985' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.611225' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.611710' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.612802' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.617165' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.617678' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.620354' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.620825' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.621892' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-669' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.632697' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-7672' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-7672' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-20"], ["updated_at", "2014-11-12 19:47:08.655756"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.657650' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.658681' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.659881' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.664173' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.664675' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.665737' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.670339' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.670888' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.673303"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.673956' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.674408' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.675472' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-7672' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.686403' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.702056' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.703257' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.704618' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.708794' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.709909' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.711106' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.715077' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.716149' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.717390' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.721624' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.722668' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.723793' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.727493' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.728509' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.729663' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H61316265345%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.734051' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:08.751055"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:08.751055"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.760513' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.761124' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.763186' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.763648' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.765606' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.766093' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.768115' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.768603' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:08.770581' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.771033' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jaclyn_kunze@orn.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R948485290' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R948485290%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R948485290' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'O6uqeFYfWuh608ekk84Hsg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '66XY4C4N' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.802345' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.1ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.0ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (4.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'josefina_kuvalis@ledner.name' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:08.826704"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:08.832233"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834941535' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R834941535%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834941535' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'M6KiSCRxEf-KYWIPY4S1EQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:08.848034"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 19:47:08.848034"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 457262' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-8604' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-8604' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.862578' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.863673' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.865019' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.869567' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.870097' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.871205' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.876331' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.877070' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.880214' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.880725' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.881816' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-8604' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.893109' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-2661' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-2661' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-22"], ["updated_at", "2014-11-12 19:47:08.924349"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.926336' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.927372' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.928587' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.932997' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.933532' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.934661' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.939078' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.939627' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:08.941748"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.942395' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.942882' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.943922' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-2661' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:08.961873' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-2529' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-2529' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.986138' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.987209' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.988412' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:08.992850' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.993384' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.994498' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:08.998911' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:08.999407' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.002189' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.002657' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.003739' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-2529' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.016205' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-6456' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-6456' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-24"], ["updated_at", "2014-11-12 19:47:09.037298"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.039290' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.040374' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.041612' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.046003' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.046526' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.047661' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.052041' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.052544' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.054686"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.055311' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.055790' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.056884' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-6456' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.068180' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-246' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-246' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.088832' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.090908' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.093160' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.099314' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.099817' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.100919' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.105295' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.105823' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.108552' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.108997' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.110094' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-246' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.121237' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.141599' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.143223' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.144682' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.148790' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.149923' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.151051' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.154945' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.155995' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.157175' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.161380' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.162490' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.163676' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.167813' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.168884' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.170144' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H73575445600%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.174492' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.201037' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.201609' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.203680' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.204144' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.206101' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.206555' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.208461' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.208896' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.210835' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.211277' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elouise.mraz@mills.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.230794"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417745378' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417745378%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417745378' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'FUBirKHiYF05hYCKzBpWyg' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V8UW5VXR' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.242220' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-341221"], ["updated_at", "2014-11-12 19:47:09.243403"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.2ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'queenie@abernathy.name' LIMIT 1[0m [1m[35mSQL (0.7ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.279136"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164246994' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R164246994%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164246994' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5lEug7RkUqYBghYhBeQT1A' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.3ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-4836' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-4836' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 19:47:09.322941"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.324982' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.326171' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.327483' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.332027' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.332535' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.333695' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.338205' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.338795' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.341032"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.341756' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.342259' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.343360' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-4836' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.360045' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-1254' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-1254' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.395005' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.396046' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.397239' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.401544' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.402055' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.403120' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.407488' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.408008' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.410791' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.411257' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.412260' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-1254' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.422996' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-1952' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-1952' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 19:47:09.441048"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.442904' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.443922' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.445117' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.449431' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.449913' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.450969' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.455345' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.455835' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.457957"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.458602' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.459079' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.460115' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-1952' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.475343' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-7786' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-7786' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.494772' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.495843' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.497089' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.501415' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.501963' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.503076' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.507596' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.508100' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.510927' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.511395' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.512471' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-7786' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.527857' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-1163' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-1163' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 19:47:09.547206"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.549110' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.550235' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.551495' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.555800' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.556330' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.557535' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.562043' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.562551' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.564685"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.565318' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.565833' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.566898' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-1163' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.577952' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.593477' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.594856' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.596068' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.603401' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.605188' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.607057' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.615243' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.616918' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.618675' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.626202' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.628154' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.629962' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.634911' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.635945' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.637052' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H32160636605%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.641086' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:09.658077"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:09.658077"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.667532' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.668142' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.670223' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.670734' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.672748' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.673254' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.675189' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.675660' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:09.678153' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.679531' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kailey@ritchie.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R854026589' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R854026589%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R854026589' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cgIyQVZiiwd1avgXvX0RDA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'P59JV4L5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.715439' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.1ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.0ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Sint ipsam culpa expedita fugiat sapiente.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 805258' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:47:09.751323"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:47:09.751323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:47:09.759806"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (5.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'royce.corwin@lubowitz.co.uk' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:09.787393"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:09.792973"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846159677' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R846159677%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846159677' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'h4R4zId3lt-bqW7Re3lLFQ' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (16.9ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:09.829643"], ["name", "ShippingCategory #7"], ["updated_at", "2014-11-12 19:47:09.829643"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 681989' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-31-2730' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-31-2730' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-31' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.843870' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.845004' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.846248' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.850778' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.851308' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.852413' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.856922' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.857485' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.860297' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.860800' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.861808' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-31-2730' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.877377' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-32-8699' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-32-8699' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-32' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-32"], ["updated_at", "2014-11-12 19:47:09.896570"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.898629' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.899696' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.900958' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.905490' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.906302' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.907469' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.911913' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.912446' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:09.914634"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.915309' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.915801' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.916865' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-32-8699' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.927845' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-33-8423' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-33-8423' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-33' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.948355' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.949450' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.950649' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.955081' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.955581' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.956713' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.961121' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.961658' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.964446' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.964916' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.965961' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-33-8423' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:09.976921' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-34-2093' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-34-2093' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-34' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-34"], ["updated_at", "2014-11-12 19:47:09.993239"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:09.995147' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:09.996274' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:09.997521' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.001866' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.002439' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.003531' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.008976' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.010246' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:10.014283"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.015248' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.015975' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.018133' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-34-2093' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.034225' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-35-8717' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-35-8717' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-35' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.053382' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.054471' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.055695' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.060131' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.060664' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.061768' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.066225' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.066795' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.069637' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.070105' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.071121' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-35-8717' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.082023' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.097053' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.098207' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.099449' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.103354' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.104441' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.105813' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.109743' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.110805' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.112083' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.116268' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.117438' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.118605' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:10.122382' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:10.123415' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:10.124670' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H02672030045%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.129073' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.156283' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.156897' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.158998' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.159508' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.161561' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.162064' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.164089' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.164551' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:10.166485' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.166949' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elwyn@block.co.uk' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:10.187186"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164738497' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R164738497%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R164738497' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZwPN4sNQrFkVdftb27sfxQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LU3CAPC4' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:10.198985' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-323134"], ["updated_at", "2014-11-12 19:47:10.200227"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (12.3ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.1ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rebeka_morar@thompson.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:57.756928"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530141711' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R530141711%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530141711' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9sICTY0bshJMxRni6uDlrw' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9365' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9365' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:47:57.917288"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:57.924964' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.926369' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.939853' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:57.962980' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.963580' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.964730' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.991502' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.992856' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:57.996854"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:57.998722' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:57.999577' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.001128' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9365' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.086536' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5823' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5823' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.111133' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.112182' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.113468' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.117759' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.118247' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.119337' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.123759' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.124274' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.127173' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.127635' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.128665' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5823' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.144392' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5329' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5329' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:47:58.163986"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.166011' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.167115' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.168403' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.172777' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.173300' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.174426' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.178839' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.179322' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.181575"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.182340' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.182804' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.183904' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5329' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.195070' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8818' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8818' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.213022' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.214089' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.215300' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.219709' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.220248' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.221334' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.225820' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.226328' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.229139' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.229602' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.230683' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8818' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.241636' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8080' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8080' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:47:58.260607"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.262598' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.263652' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.264930' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.269373' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.269859' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.270978' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.275525' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.276016' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.278160"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.278836' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.279309' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.280409' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8080' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.293057' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.323399' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.324597' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.326218' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.330630' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.331718' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.332842' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.336635' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.337674' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.338886' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.343111' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.344246' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.345368' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.349350' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.350464' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.351745' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H41265435606%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.359479' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:58.430263"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:58.430263"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.463420' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.464066' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.466229' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.466738' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.468666' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.469124' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.471066' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.471515' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:58.473495' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.473984' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hope@mrazvonrueden.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675969742' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R675969742%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675969742' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gxZiw401pXtzQk31_5WbNQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '77B74ZA8' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.569435' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.2ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.1ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (169.1ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'holly@ankunding.info' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:58.770141"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:58.776119"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R067478802' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R067478802%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R067478802' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9V9z4E76d7vQBxA7VsMqbQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:58.792207"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:47:58.792207"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 982162' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6599' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6599' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.807359' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.808562' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.809859' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.814316' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.814830' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.815923' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.820337' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.820894' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.823680' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.824150' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.825179' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6599' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.836221' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4760' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4760' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:47:58.854074"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.856020' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.857104' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.858302' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.862592' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.863115' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.864207' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.868509' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.869075' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.871186"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.871837' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.872299' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.873354' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4760' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.884139' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3865' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3865' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.902783' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.903823' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.905036' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.909270' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.909768' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.910813' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.915199' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.915710' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.918466' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.918932' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.920021' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3865' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.930999' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1765' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1765' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:47:58.947424"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.949253' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.950343' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.951571' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.955926' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.956428' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.957495' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.961858' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.962399' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:58.964551"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.965172' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.965629' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.966660' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1765' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:58.977559' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4379' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4379' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:58.996069' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:58.997178' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:58.998401' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.002649' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.003158' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.004250' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.008659' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.009222' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.011926' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.012379' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.013458' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4379' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.024407' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.039708' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.040845' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.042081' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.045921' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.047222' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.048356' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.052225' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.053270' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.054498' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.058783' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.059895' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.061100' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.065557' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.066662' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.067978' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H21152715674%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.072342' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.100570' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.101638' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.103743' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.104230' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.106192' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.106638' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.108572' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.109042' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.111005' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.111440' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sabina_mcglynn@spinka.com' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.132234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R908345763' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R908345763%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R908345763' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a6PQvuz8rT-mR4XMdueZFA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6MB2BA3Q' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.160249' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-345543"], ["updated_at", "2014-11-12 19:47:59.161499"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.1ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dallas@stracke.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.193986"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811001251' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R811001251%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811001251' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'b9hIwiQAojBDzCb24vZvIQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9743' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9743' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:47:59.225911"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.228092' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.229273' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.230668' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.235173' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.235709' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.236777' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.241287' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.241852' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.244397"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.245052' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.245545' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.246606' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9743' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.257629' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-593' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-593' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.276938' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.278025' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.279259' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.283554' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.284078' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.285231' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.289753' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.290283' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.293061' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.293524' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.294575' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-593' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.305913' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-335' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-335' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:47:59.322497"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.324394' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.325479' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.326677' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.330919' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.331435' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.332491' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.336861' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.337380' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.339476"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.340110' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.340568' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.341602' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-335' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.352466' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-7871' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-7871' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.371862' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.372918' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.374150' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.378431' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.378935' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.380031' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.384440' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.384994' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.387699' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.388151' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.389320' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-7871' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.400332' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-2413' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-2413' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:47:59.419061"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.420953' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.422003' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.423219' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.427469' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.427967' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.429017' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.433392' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.433917' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.435975"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.436574' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.437046' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.438076' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-2413' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.448844' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.463863' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.464996' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.466367' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.470244' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.471276' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.472416' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.476004' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.477028' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.478136' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.482182' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.483326' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.484506' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.488156' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.489173' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.490372' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H51425522315%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.498623' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:59.517209"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:47:59.517209"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.526601' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.527184' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.529250' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.529708' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.531672' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.532127' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.534077' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.534536' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.536510' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.536985' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'barry@satterfieldbartoletti.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R449518033' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R449518033%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R449518033' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CSNVDPFUMkvZHYwqMW37zA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'H3DLQZAY' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.568523' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.1ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.0ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (4.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlon.keeling@kling.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:47:59.604253"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.609840"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R637708175' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R637708175%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R637708175' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bCY0Qu9JjFNVLPviUb-hVQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:47:59.627374"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:47:59.627374"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 380601' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-8990' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-8990' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.641667' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.642758' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.644082' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.648586' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.649075' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.650193' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.654604' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.655150' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.657956' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.658455' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.659522' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-8990' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.670679' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-5230' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-5230' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:47:59.688877"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.690790' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.691858' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.693082' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.697427' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.697949' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.699008' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.703390' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.703964' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.706028"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.706688' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.707162' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.708250' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-5230' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.719077' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-9735' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-9735' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.738096' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.739149' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.740355' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.744594' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.745137' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.746265' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.750993' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.751554' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.754257' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.754729' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.755818' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-9735' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.766904' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-6596' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-6596' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:47:59.784678"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.786523' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.787561' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.788750' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.792966' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.793466' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.794539' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.798944' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.799460' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:47:59.801531"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.802148' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.802638' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.803692' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.3ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-6596' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.819423' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-768' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-768' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.837871' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.838944' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.840139' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.844422' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.844929' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.845998' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.850405' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.850969' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.853771' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.854231' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.855309' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-768' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.866003' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.881027' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.882168' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.883407' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.887197' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.888223' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.889336' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.892977' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.894026' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.895147' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.899302' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.900442' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.901591' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:47:59.905214' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:47:59.906261' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:47:59.907410' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H68701147772%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.911683' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.938033' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.938642' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.940727' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.941173' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.943133' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.943604' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.945580' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.946049' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:47:59.947978' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.948461' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'keira.hyatt@kunzeemmerich.name' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:47:59.968274"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595236104' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R595236104%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595236104' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZyI4ov6fB5qql_HBvoZ2BA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SWQSYZA2' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:47:59.980408' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-523343"], ["updated_at", "2014-11-12 19:47:59.981618"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.1ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marley@howeschulist.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:46.033812"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R952148483' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R952148483%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R952148483' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lM66yCP829BCEiyoxJCaWw' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-609' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-609' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 19:53:46.175031"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.182589' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.183860' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.197702' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.221293' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.221878' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.223020' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.238093' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.239042' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.242366"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.243877' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.244343' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.245307' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-609' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.328922' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-218' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-218' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.352338' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.353458' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.354738' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.358998' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.359524' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.360575' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.364879' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.365518' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.368671' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.369194' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.0ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.370306' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-218' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.381236' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1746' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1746' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 19:53:46.398220"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.400088' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.401163' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.402423' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.406654' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.407153' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.408215' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.412470' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.412967' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.415028"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.415713' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.416190' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.417192' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1746' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.427836' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-5404' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-5404' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.447346' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.448413' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.449627' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.453891' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.454405' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.455505' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.459857' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.460394' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.465515' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.466380' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.468041' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-5404' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.483582' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-5365' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-5365' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 19:53:46.503161"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.505420' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.506536' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.508011' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.513775' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.514552' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.516096' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.522814' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.524140' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:46.527402"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.528203' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.528726' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.529754' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-5365' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.541351' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.570027' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.571228' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.572504' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.579186' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.581385' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.583230' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.588883' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.590072' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.591245' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.595340' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.596553' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.597776' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:46.601892' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:46.602984' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:46.604169' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H11058423517%') [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.611771' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.2ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:53:46.691578"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:46.691578"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.726138' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.726861' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.729182' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.729715' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.731717' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.732174' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.734181' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.734657' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:46.737093' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.737668' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.2ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'florencio@dibbertdach.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R160243098' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R160243098%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R160243098' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'VP-m_OZcbOupgDQ2qgqYDA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '748QZVKK' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:46.843496' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.2ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.1ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (145.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rey@fritschkutch.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:47.017960"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.023395"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R374979920' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R374979920%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R374979920' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'RUU_XZN44hJFsKebNqLcBg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:53:47.038999"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 19:53:47.038999"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 566888' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-1737' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-1737' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.053202' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.054307' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.055557' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.059986' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.060501' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.061582' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.066060' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.066613' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.069426' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.069878' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.070892' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-1737' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.081587' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4368' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4368' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 19:53:47.097997"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.099956' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.101029' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.102278' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.106532' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.107064' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.108117' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.112444' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.113010' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.115177"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.115872' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.116347' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.117364' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4368' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.132275' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8473' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8473' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.152354' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.153685' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.155173' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.159731' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.160249' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.161375' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.166108' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.166684' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.169718' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.170192' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.171237' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.4ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8473' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.187713' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7777' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7777' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 19:53:47.205629"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.207527' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.208579' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.209785' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.214394' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.214909' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.216013' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.220430' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.220951' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.223145"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.223751' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.224197' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.225213' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7777' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.236480' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9118' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9118' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.254894' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.255920' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.257164' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.261471' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.262033' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.263188' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.267587' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.268074' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.272549' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.273288' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.275344' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9118' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.289852' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.307460' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.308923' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.310421' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.315423' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.316813' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.318056' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.322158' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.323467' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.324808' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.329105' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.330352' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.332012' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.336591' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.338529' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.340359' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H13227038302%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.345815' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.1ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.375169' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.375751' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.377824' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.378277' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.380361' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.380844' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.382959' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.383472' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.385677' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.386177' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'felipa@hilll.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.406760"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (15.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478517998' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R478517998%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R478517998' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lZPkKIvXUiEJ9mKUIBXidA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XNJW9BBC' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.434149' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-324303"], ["updated_at", "2014-11-12 19:53:47.435369"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'casandra@cruickshank.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.459702"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662369812' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R662369812%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662369812' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1j3REocclQGtVwNjw47VSg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-316' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-316' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 19:53:47.492103"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.494361' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.495510' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.496828' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.501421' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.501948' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.503046' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.507589' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.508171' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.510363"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.511051' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.511548' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.512591' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-316' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.523994' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4476' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4476' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.543583' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.544675' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.545898' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.550276' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.550803' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.551888' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.556244' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.556779' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.559705' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.560205' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.561216' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4476' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.572633' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-4755' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-4755' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 19:53:47.590984"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.592936' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.593996' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.595209' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.599475' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.599981' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.601030' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.605316' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.605837' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.607932"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.608692' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.609157' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.610255' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-4755' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.621487' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-2187' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-2187' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.641908' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.642930' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.644136' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.648360' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.648896' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.649977' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.654282' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.654839' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.657608' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.658097' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.659174' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-2187' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.670057' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-8578' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-8578' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 19:53:47.686390"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.688268' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.689323' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.690589' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.694984' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.695507' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.696576' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.700869' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.701391' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.703569"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.704185' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.704640' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.705631' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-8578' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.716503' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.731580' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.732695' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.733913' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.737754' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.738759' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.739910' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.743520' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.744557' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.745668' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.749573' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.750645' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.751820' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.755500' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.756573' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.757679' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H35071813814%') [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.762024' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:53:47.784385"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:47.784385"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.793827' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.794410' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.796491' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.796935' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.798890' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.799334' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.801304' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.801760' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:47.803755' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.804217' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lane@barrows.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978621116' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R978621116%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978621116' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'o_Jx4fHo69QRtwLEr-ohtQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YE6U2SFG' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.835478' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.1ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.0ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (4.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gerda_rodriguez@langosh.com' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:47.871861"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:47.877441"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R305381506' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R305381506%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R305381506' LIMIT 1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UzlHX6VFENOlXDtkNxWUEA' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:53:47.898394"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 19:53:47.898394"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 473525' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-7116' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-7116' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.912610' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.913707' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.914979' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.919421' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.919972' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.921102' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.925581' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.926140' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.928958' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.929433' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.930480' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-7116' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.947198' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-7451' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-7451' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 19:53:47.962693"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.964641' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.965692' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.966896' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:47.971181' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.971699' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.972736' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.977014' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.977554' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:47.979770"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:47.980413' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.980881' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:47.981919' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-7451' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:47.992599' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-2120' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-2120' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.009939' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.010953' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.012147' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.016430' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.016931' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.017991' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.022381' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.022899' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.025667' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.026113' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.027121' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-2120' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.038408' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-4711' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-4711' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 19:53:48.055543"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.057400' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.058441' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.059645' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.063886' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.064390' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.065453' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.069782' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.070300' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.072424"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.073049' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.073498' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.074517' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-4711' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.085227' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-8225' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-8225' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.105009' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.106064' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.107264' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.111573' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.112085' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.113163' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.117536' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.118072' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.120974' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.121422' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.122425' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-8225' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.138541' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.154009' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.155154' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.156410' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.160234' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.161279' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.162414' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.166090' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.167131' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.168312' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.172578' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.173631' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.174769' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.178463' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.179499' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.180681' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H00630634465%')[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.184992' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.210983' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.211554' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.213581' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.214033' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.215977' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.216424' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.218441' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.218931' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.220946' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.221388' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maggie_mcdermott@lind.name' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.241655"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R286249053' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R286249053%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R286249053' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LEpxQEnoZ8BDNYr3I4Enqg' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BHPGABC6' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.253252' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-105331"], ["updated_at", "2014-11-12 19:53:48.254426"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (4.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nolan_bruen@mcculloughjohnson.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.285761"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R646856021' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R646856021%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R646856021' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CE1VL7CWGghDvJbtiZZIpQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-6508' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-6508' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 19:53:48.330973"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.332980' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.334047' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.335314' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.339916' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.340426' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.341525' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.345984' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.346541' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.348615"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.349284' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.349750' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.350789' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-6508' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.362142' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9176' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9176' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.381568' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.382598' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.383887' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.388228' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.388775' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.389863' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.394154' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.394673' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.397385' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.397846' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.398860' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9176' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.409582' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-2771' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-2771' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 19:53:48.427697"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.429858' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.431090' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.432482' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.436924' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.437444' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.438526' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.443081' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.443594' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.445761"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.446430' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.446902' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.447892' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-2771' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.458813' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.4ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-204' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-204' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.484355' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.485431' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.486666' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.491029' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.491552' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.492598' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.496909' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.497453' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.500263' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.500704' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.501703' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-204' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.513037' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-6260' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-6260' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 19:53:48.536777"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.539607' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.541773' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.543517' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.548518' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.549078' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.550206' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.555299' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.556025' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.559200"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.560071' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.560678' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.562083' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-6260' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.576070' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.593111' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.594330' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.595562' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.599471' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.600537' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.601667' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.605403' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.606461' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.607577' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.611828' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.612910' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.614052' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.617823' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.618847' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.2ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.620750' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H44857027250%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.628664' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:53:48.652372"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 19:53:48.652372"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.661784' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.662359' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.664445' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.664902' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.666869' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.667317' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.669304' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.669758' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:48.671701' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.672143' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'luciano@gorczany.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R126651028' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R126651028%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R126651028' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iHsgxq7upBzpfoVEZXjQ6A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V6KCK7ML' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.703590' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.1ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.0ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'Deserunt et nam minima et labore a neque dolor.' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 2]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 244370' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-12 19:53:48.755439"], ["preferences", "--- {}\n"], ["type", "Spree::Calculator::DefaultTax"], ["updated_at", "2014-11-12 19:53:48.755439"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_calculators" SET "calculable_id" = ?, "calculable_type" = ?, "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 2[0m [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"], ["preferences", "--- {}\n"], ["updated_at", "2014-11-12 19:53:48.763653"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'trace@marquardt.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 19:53:48.785691"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:48.791544"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R684952977' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R684952977%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R684952977' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XqkS-igUP7CF8YIp5TyNRA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 19:53:48.812817"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 19:53:48.812817"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 131289' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-7877' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-7877' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.827697' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.828856' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.830130' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.834549' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.835075' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.836163' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.840699' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.841237' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.844138' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.844613' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.845638' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.3ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-7877' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.861649' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-5827' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-5827' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-27"], ["updated_at", "2014-11-12 19:53:48.879396"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.881381' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.882471' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.883662' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.887953' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.888513' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.889585' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.893917' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.894485' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.896662"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.897294' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.897763' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.898782' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-5827' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.909625' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-9564' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-9564' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.928532' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.929608' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.930801' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.935055' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.935571' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.936754' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.941288' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.941865' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.944946' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.945446' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.946512' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-9564' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:48.957794' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-2816' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-2816' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-29"], ["updated_at", "2014-11-12 19:53:48.973574"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.975575' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.976620' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.977825' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:48.982063' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.982550' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.983652' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.987933' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.988481' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 19:53:48.990593"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:48.991201' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.991645' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:48.992652' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-2816' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.003366' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-5716' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-5716' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.021901' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.022968' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.024175' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.028414' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.028939' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.030015' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.034337' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.034894' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.037652' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.038101' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.039088' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-5716' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.049992' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.064983' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.066115' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.067344' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.071243' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.072311' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.073487' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.077283' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.078315' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.079531' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.083826' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.084941' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.086129' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 19:53:49.089992' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 19:53:49.091049' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 19:53:49.092285' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H48701262454%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.096719' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.1ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.129600' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.130187' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.132358' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.132841' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.134920' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.135380' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.137626' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.138136' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 19:53:49.140163' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.140636' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'thad.lehner@hoegerosinski.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 19:53:49.176844"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R722586912' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R722586912%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R722586912' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'diIPpMPb_VW64BxhMkUNVQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2HRN44S9' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 19:53:49.188255' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-554315"], ["updated_at", "2014-11-12 19:53:49.189816"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.3ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'michelle.schuppe@bogan.name' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:12.932995"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R298420289' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R298420289%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R298420289' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2CA4ejvinVeIer9POk8kNw' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:13.026256"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:02:13.026256"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 717060' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5551' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5551' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.073847' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.075171' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.088715' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.111830' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.112407' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.113560' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.129509' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.130259' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.133555' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.134025' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.135007' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5551' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.165595' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-8615' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-8615' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:02:13.238775"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.240819' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.241927' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.243157' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.247537' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.248135' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.249181' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.253548' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.254149' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.256245"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.256960' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.257445' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.258477' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-8615' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.268448' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alexandrine@runolfsson.biz' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.323545"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R230732415' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R230732415%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R230732415' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zL4CfgiihR-DtwG27IBvxw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7039' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7039' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:02:13.350605"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.352726' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.353815' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.355070' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.360500' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.361082' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.362195' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.366699' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.367241' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.369527"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.370262' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.370792' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.371939' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7039' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.381625' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3951' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3951' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.399916' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.400955' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.402169' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.406862' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.407379' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.408490' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.412871' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.413389' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.416375' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.416898' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.418066' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3951' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.427365' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (3.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kiarra.hoppe@wunsch.info' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.460296"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015679174' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R015679174%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015679174' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kUWdCRCNwmHKshcqPvyL-Q' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:13.474915"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:02:13.474915"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 249751' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2252' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2252' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.489728' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.490921' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.492515' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.497830' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.498380' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.499505' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.504056' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.504605' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.510801' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.511707' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.7ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.513347' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2252' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.524813' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2011' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2011' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:02:13.541350"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.543315' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.544373' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.545627' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.550726' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.551222' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.552307' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.556676' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.557216' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.561482"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.562846' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.563833' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.565689' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2011' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.577321' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (3.9ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.3ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maxime_hettinger@smith.co.uk' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.611528"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R765944819' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R765944819%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R765944819' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vW2vdK0NHWbVmD5dxVzQLA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6982' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6982' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:02:13.640398"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.642704' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.644027' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.645358' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.650263' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.650778' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.651861' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.656291' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.656824' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.659086"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.659859' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.660368' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.661518' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6982' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.670970' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-689' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-689' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.690633' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.691756' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.693035' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.697879' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.698402' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.699539' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.703923' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.704449' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.707897' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.708438' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.709625' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-689' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.719209' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (3.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelvin_baumbach@wuckertosinski.name' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:13.767765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R389064740' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R389064740%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R389064740' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cvg2zrt4c6vyFe9nszAljQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:13.781870"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:02:13.781870"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 194259' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5573' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5573' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.796823' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.798003' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.799313' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.804301' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.804810' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.805972' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.810713' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.811533' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.814904' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.815456' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.816561' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5573' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.3ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.826560' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3622' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3622' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:02:13.842235"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.844163' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.845237' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.846468' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.851383' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.851919' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.853009' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.857310' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.857849' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.860077"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.860779' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.861296' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.862426' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3622' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.872183' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (3.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'xander@nikolaus.info' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:13.899390"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R584276670' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R584276670%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R584276670' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CftZX1kh8NVL0h3WIP7SJw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5897' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5897' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:02:13.928052"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.930351' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.931554' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.932851' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.937771' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.938275' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.939372' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.943932' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.944932' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:13.949749"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.951014' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.951797' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.953471' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5897' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:13.964174' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-659' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-659' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.983092' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.984205' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.985436' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:13.990142' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.990709' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.991820' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.996255' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:13.996793' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:13.999846' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:14.000377' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:14.001496' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-659' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:14.010722' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leonard.jenkins@hudson.name' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:33.856874"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R724389032' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R724389032%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R724389032' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6JuwPMphSh-xIQaDZsK1GQ' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:33.957500"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:02:33.957500"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 2310' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7960' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7960' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.010824' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.012148' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.025724' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.055599' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.056200' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.057440' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.068161' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.068758' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.072124' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.072594' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.073606' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7960' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.098894' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.3ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-1960' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-1960' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:02:34.177608"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.179657' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.180696' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.181895' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.186631' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.187130' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.188249' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.192635' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.193215' WHERE 1=0 [1m[36mSQL (0.5ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.197963"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.199418' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.200412' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.202203' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-1960' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.213139' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearl_schamberger@bins.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002313690' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R002313690%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002313690' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NTNVnkM0i4IFYfnLvvbc3A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QW6HG32F' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.303589' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nelson.mante@becker.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.7ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.332747"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R433746064' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R433746064%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R433746064' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9u_X1-JbSAUlV0xvAhJB_w' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:34.352744"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:02:34.352744"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 439267' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4814' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4814' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.368139' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.369534' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.371744' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.380748' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.381538' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.383034' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.387852' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.388483' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.391596' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.392090' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.393117' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.6ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4814' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.407568' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8005' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8005' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:02:34.424597"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.426609' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.427691' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.428965' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.433754' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.434273' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.435405' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.439818' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.440367' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.442705"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.443434' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.443951' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.445125' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8005' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.454563' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'concepcion@padberg.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R549369407' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R549369407%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R549369407' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ytzo8ftOlZudGvHgHoKw6w' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RTNKVB3K' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.490650' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roxane@quigley.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.514144"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R005962601' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R005962601%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R005962601' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8lOHWJaaEyKclI93Oq5zvg' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:34.530009"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:02:34.530009"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 399644' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-624' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-624' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.544807' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.545946' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.547273' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.552653' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.553287' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.554558' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.559255' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.559867' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.563009' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.563533' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.564686' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-624' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.574346' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-3579' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-3579' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:02:34.589573"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.591586' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.592661' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.593961' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.599018' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.599543' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.600706' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.605284' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.605843' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.608351"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.609106' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.609645' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.610871' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-3579' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.620481' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elenora.spencer@danielbrakus.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R375219554' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R375219554%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R375219554' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zG26TzijbyKQq53SPP88CQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'G5QTUMKU' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.672369' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'savanah.bernhard@spinka.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.696376"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R568022263' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R568022263%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R568022263' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xeuCZyk16X0Q27Pk2U09Rw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:34.710511"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:02:34.710511"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 511842' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-816' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-816' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.724943' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.726133' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.727444' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.732369' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.732931' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.734110' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.741701' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.742283' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.745242' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.745710' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.746804' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-816' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.757456' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3896' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3896' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:02:34.773517"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.775659' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.776766' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.778111' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.783328' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.783904' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.785174' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.790664' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.792179' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.796484"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.797525' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.798282' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.799954' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3896' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.815318' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'columbus@abshire.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R905606796' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R905606796%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R905606796' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SWcCGWiObt3LU5i4rnoscw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WYUZ6NBT' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.851852' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'darrion.raynor@gradylangosh.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:34.875776"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222485001' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R222485001%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222485001' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'RMXYpNV3sHu6uMrsS2LyRw' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:02:34.891757"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:02:34.891757"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 712796' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6074' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6074' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.906790' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.907933' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.909202' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.914027' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.914609' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.915690' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.920134' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.920658' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.926378' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.927399' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.929207' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6074' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.940634' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-4868' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-4868' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:02:34.956903"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.958972' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.960089' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.961363' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:34.966206' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.966762' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.967909' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.972358' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.972934' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:34.975281"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:34.976024' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.976565' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:34.977677' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-4868' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:34.987515' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'consuelo@satterfield.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R754571616' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R754571616%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R754571616' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3Xur9Z1fXPYI8-CNxjiymQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '552GDBR7' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.024901' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'colin.sauer@paucek.info' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:02:35.061593"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R092065270' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R092065270%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R092065270' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-EpxWpEeoMKrKUZTZjmQow' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-927' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-927' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:02:35.092614"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.094805' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.096024' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.097382' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.102406' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.103006' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.104318' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.109271' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.109915' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:02:35.112333"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.113098' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.113651' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.114827' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-927' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.124994' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1098' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1098' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.149787' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.150876' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.152081' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:02:35.156934' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.157474' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.158608' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.163079' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.163636' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:02:35.169686' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.170663' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:02:35.172445' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1098' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.197852' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lucas_tremblay@stokes.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:02:35.228431"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R594636705' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R594636705%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R594636705' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'peiJOcriA5KHEBnTlkrcIg' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '3ZNJ9AET' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:02:35.240224' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-250245"], ["updated_at", "2014-11-12 20:02:35.241485"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (4.0ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'calista.ryan@pollichhauck.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.1ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:18.438284"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R462804279' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R462804279%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R462804279' LIMIT 1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kynhKjJ3HkmVaSXv5AREsQ' LIMIT 1 [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:18.547427"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:03:18.547427"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 62046' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-3290' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-3290' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.601236' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.602568' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.621773' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.645765' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.646383' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.647654' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.658281' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.658903' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.662369' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.662886' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.663922' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-3290' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.693805' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3083' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3083' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:03:18.768347"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.770424' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.771524' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.772790' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.777636' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.778164' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.779388' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.783729' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.785072' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:18.789794"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.791081' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.791858' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.793499' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3083' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.804060' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madalyn_medhurst@hauck.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R008443054' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R008443054%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R008443054' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'uNDPS7TeTAaZPdanCPva-A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YBPQA6VZ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.896279' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.2ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'evelyn@deckowblick.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:18.920258"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R033781641' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R033781641%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R033781641' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jhua9UxM0vW8U9qIkxYGQg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:18.937979"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:03:18.937979"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 131641' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-5637' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-5637' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.955299' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.956508' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.958094' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:18.963441' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.964021' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.965270' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.970567' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.971175' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:18.974341' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.974852' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:18.975908' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-5637' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:18.985671' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1918' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1918' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:03:19.002730"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.004725' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.005815' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.007059' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.012123' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.012676' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.013906' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.018761' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.019348' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.021706"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.022445' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.023012' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.024173' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1918' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.033900' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maryse@oconner.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837752830' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R837752830%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837752830' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4AUUruqIDATea40icvsAog' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KEZ6WJXB' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.070207' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'haylie.hyatt@bernhard.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.089238"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592471734' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R592471734%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592471734' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OI02xLEfANrEvJNo3ByqWA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:19.104901"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:03:19.104901"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 651075' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2264' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2264' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.120031' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.122291' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.124676' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.131694' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.132373' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.133798' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.139291' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.139932' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.142924' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.143438' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.144627' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2264' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.156979' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2965' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2965' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:03:19.175850"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.177863' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.178990' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.180301' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.185768' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.186378' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.187686' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.193027' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.194668' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.199168"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.200239' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.201054' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.202792' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2965' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.218375' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rachael@tillman.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R828013269' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R828013269%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R828013269' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LeFwiUM-fMb5DjE7gPzixw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5WKWVTXA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.270804' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amalia.dickens@schusterweissnat.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.294193"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R287506723' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R287506723%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R287506723' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'C056CEobHDT0AWS75EXevg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:19.308412"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:03:19.308412"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 401292' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2683' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2683' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.322661' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.324066' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.325402' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.330428' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.330969' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.332152' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.337190' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.338790' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.344279' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.345193' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.346886' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2683' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.358681' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-6934' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-6934' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:03:19.378990"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.381057' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.382211' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.383606' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.390858' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.391460' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.392874' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.398273' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.399001' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.401505"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.402284' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.402867' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.403962' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.3ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-6934' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.418721' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'samara_altenwerth@dietrichziemann.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R621438182' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R621438182%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R621438182' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-oLy1SrIg_uS15OPmyVQqA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LEHV7AWX' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.463643' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reinhold@bauch.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.487751"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R140815238' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R140815238%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R140815238' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gJu-T2UzbHhsJlMxePFxeQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:19.503062"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:03:19.503062"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 945921' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2430' LIMIT 1 [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2430' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.521945' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.523664' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.525471' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.530830' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.531397' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.532589' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.537249' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.537930' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.541102' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.541628' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.542675' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2430' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.558080' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6108' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6108' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:03:19.575407"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.577369' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.578461' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.579748' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.584631' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.585167' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.586310' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.590734' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.591249' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.593529"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.594209' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.594748' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.595949' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6108' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.605679' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'genesis@ankundingreinger.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R946797103' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R946797103%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R946797103' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xA4XtsBDT-iup9UlMB5whA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CQDV5J5N' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.642638' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nicolas@heaney.biz' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:19.678685"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625336073' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R625336073%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625336073' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'r0M0zEknSRKh1kWxyUFQHg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-6608' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-6608' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:03:19.710226"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.713700' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.715530' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.717359' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.722979' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.723576' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.724772' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.729421' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.730050' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:19.732510"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.733271' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.733811' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.734929' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-6608' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.744703' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-6020' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-6020' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.763014' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.764169' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.765480' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:19.770482' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.771049' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.772258' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.776829' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.777380' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:19.780582' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.781134' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:19.782276' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-6020' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.806128' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'janiya@becker.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:19.830788"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R338459268' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R338459268%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R338459268' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2CeUKSpdxtzTNuh9DvLnkA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'H6MXPQDD' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:19.842459' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-040424"], ["updated_at", "2014-11-12 20:03:19.843671"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jeramie.hudson@lakin.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.7ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.272337"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996490968' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R996490968%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996490968' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'BbI_fkJfyVmQux8Z6MMkow' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:26.372656"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:03:26.372656"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 919852' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-4920' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-4920' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.421894' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.423232' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.437343' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.467582' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.468238' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.469491' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.480309' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.480953' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.484684' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.485204' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.486260' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-4920' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.516784' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-7303' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-7303' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:03:26.590390"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.592603' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.593730' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.595070' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.3ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.604323' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.605191' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.607004' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.612410' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.613042' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.615476"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.616210' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.616658' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.617686' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.3ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-7303' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.632970' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.4ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cynthia.bauch@herzogschinner.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R000376138' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R000376138%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R000376138' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QDTAsfuDp-vmUYW_oZ1zzQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WCE2EREB' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.735310' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'austen@schuppewolff.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.763769"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R877388282' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R877388282%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R877388282' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '80gT6fdRgou29FP7yib0zw' LIMIT 1 [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:26.788647"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:03:26.788647"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 829014' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-1941' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-1941' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.804651' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.805782' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.807247' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.812243' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.812808' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.813943' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.819008' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.819833' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.823059' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.823654' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.824762' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-1941' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.834956' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2138' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2138' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:03:26.853201"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.857206' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.859457' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.861838' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.868634' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.869196' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.870336' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.874897' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.875507' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:26.877905"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.878584' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.879084' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.880131' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2138' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.890237' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bennie_connelly@runte.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R211122737' LIMIT 1 [1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R211122737%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R211122737' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '51iTNnEsDgI5GixDh6GGCA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XAVKQH4F' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:26.926586' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dayna@harvey.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:26.950443"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586554518' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R586554518%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586554518' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MLzuZ20iO4euakvsByY0Qw' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:26.966808"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:03:26.966808"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 813489' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7338' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7338' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.981677' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.982954' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.984377' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:26.989355' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.989885' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.990983' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.995491' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.996056' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:26.999185' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:26.999695' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.000782' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7338' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.010298' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9530' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9530' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:03:27.027580"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.029629' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.030751' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.032029' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.036896' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.037440' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.038625' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.043034' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.043562' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.045958"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.046728' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.047272' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.048438' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9530' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.057762' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'camren.harris@ryan.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656823586' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R656823586%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R656823586' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YPIvtm9j7YboaUDDemgEzA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7JS9BJZH' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.109528' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dejon_kutch@hammeskilback.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.133539"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R346139192' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R346139192%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R346139192' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'E7t8MRBH_S90fOHw_JYY0w' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:27.148929"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:03:27.148929"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 94209' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2167' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2167' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.163345' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.164653' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.165979' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.170968' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.171542' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.172651' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.177110' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.177662' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.180753' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.181297' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.182459' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2167' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.191877' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3877' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3877' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:03:27.207581"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.209640' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.210788' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.212100' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.216864' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.217407' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.218534' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.223003' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.223536' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.225857"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.226608' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.227139' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.228288' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3877' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.237456' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelly@tremblay.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R385674094' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R385674094%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R385674094' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'uT5FIwz3q0IxvO1FIPEhAA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QTWH6T8F' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.272759' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amalia@hanenitzsche.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.292008"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R362580709' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R362580709%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R362580709' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hbf2v49fuIge54UpyhTlJg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:03:27.309572"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:03:27.309572"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 168219' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9527' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9527' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.326479' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.328067' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.329720' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.335929' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.336634' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.337988' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.343403' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.344125' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.347593' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.348143' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.349401' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9527' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.359781' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5888' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5888' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:03:27.376737"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.378703' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.379745' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.380960' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.385716' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.386253' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.387356' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.391649' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.392198' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.394525"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.395242' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.395763' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.396880' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5888' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.406049' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brett_gislason@abernathy.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R489160696' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R489160696%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R489160696' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gWgGfKe89tfQaHAqI1LRJQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7KRDAU77' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.441497' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'colten@damore.us' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:03:27.478295"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163668443' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R163668443%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163668443' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'H3piM5JIfUFKWM4yNFNMkg' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9941' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9941' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:03:27.506855"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.509019' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.510253' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.511630' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.518780' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.519969' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.522355' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.527986' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.528578' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:03:27.530858"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.531576' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.532059' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.533126' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9941' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.543303' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1862' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1862' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.562799' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.563861' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.565134' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:03:27.570021' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.570560' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.571693' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.576191' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.576809' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:03:27.580003' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.580536' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:03:27.581676' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1862' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.605939' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hipolito@dicki.us' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:03:27.631506"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R281133069' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R281133069%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R281133069' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ShDb9K8yMHAFUkkLNjWnqg' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'J9FEMWZY' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:03:27.642576' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-115345"], ["updated_at", "2014-11-12 20:03:27.643739"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carole_medhurst@kub.com' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:06.678195"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716967681' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R716967681%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716967681' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EsEdJpRLCw94OXgpmkqpkA' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:04:06.784860"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:04:06.784860"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 440499' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.5ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6744' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6744' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:06.845396' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.846843' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.2ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.867278' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:06.893639' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.894295' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.895591' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.911400' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.912202' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:06.915981' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.916621' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:06.917831' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.3ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6744' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:06.950434' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-6786' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-6786' LIMIT 1 [1m[36mSQL (58.9ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:04:07.041779"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.044309' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.045804' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.047673' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.054099' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.054913' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.056278' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.061263' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.061881' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.064300"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.065037' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.065470' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.066539' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-6786' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.080760' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'merlin@kuphal.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592655208' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R592655208%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R592655208' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NZaGxQEnaSNfihgKbAb_Aw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CTN3JDX4' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.166168' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.4ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.3ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rozella_okon@eichmanngusikowski.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.194585"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236338372' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R236338372%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R236338372' LIMIT 1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9Z2iNHOPN-za3n_k8lfqvg' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:04:07.214012"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:04:07.214012"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 742036' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9472' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9472' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.229468' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.230625' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.232223' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.237315' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.237926' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.239113' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.243640' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.244190' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.250256' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.251253' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.253262' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9472' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.265303' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3218' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3218' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:04:07.282045"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.283997' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.285056' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.0ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.286387' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.291623' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.292173' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.293326' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.298004' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.298551' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.300916"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.301679' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.302216' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.303324' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3218' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.312866' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'magdalen.bradtke@turcotte.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R891650360' LIMIT 1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R891650360%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R891650360' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZCItr-FQ05I53KJmv5EGFQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DF2DGLEE' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.355254' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'camren_hamill@champlinshanahan.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.373878"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417545621' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417545621%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417545621' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hr0VudjqWEPTF02RdgHfKg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:04:07.390510"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:04:07.390510"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 273970' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6316' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6316' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.405163' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.406361' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.407670' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.412543' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.413072' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.414233' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.418693' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.420207' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.426039' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.426811' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.428472' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6316' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.438897' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6648' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6648' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:04:07.456053"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.458006' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.459138' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.460435' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.465307' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.465872' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.467015' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.471840' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.473375' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.477913"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.479059' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.479849' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.481558' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6648' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.491946' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shyanne@block.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R659779568' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R659779568%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R659779568' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AMNipPcRuwovqeH9IGsKAA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PGXFN2ZG' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.543029' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'quinten_quigley@langstracke.info' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.565265"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727766159' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R727766159%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727766159' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LhOCqBwMC_kh1viA-98AaA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:04:07.579808"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:04:07.579808"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 608199' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6278' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6278' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.600320' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.601572' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.602839' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.609266' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.610576' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.612866' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.621398' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.622198' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.625933' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.626404' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.627429' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6278' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.637596' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-823' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-823' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:04:07.655152"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.657292' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.658414' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.659702' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.664800' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.665367' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.666547' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.671236' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.672215' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.674670"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.675456' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.675934' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.676960' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-823' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.686470' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elyssa@goyetteparker.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523039262' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R523039262%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R523039262' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'TjJhhI3gOJWBigIJAYitmw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'MTMMKLNF' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.722582' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'christiana.littel@schmitt.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:07.746893"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R989139961' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R989139961%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R989139961' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Fo88ABdh0S4RbvOrnFNZmA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:04:07.761767"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:04:07.761767"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 473468' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6335' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6335' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.776053' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.777179' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.778552' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.783463' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.784015' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.785098' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.789761' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.790354' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.796486' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.797422' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.799197' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6335' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.810250' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5388' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5388' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:04:07.827763"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.829786' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.830901' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.832158' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.837195' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.837783' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.838912' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.843510' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.845177' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.849428"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.850584' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.851340' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.853021' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5388' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.863860' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.2ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1 [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madison.terry@bergstrom.ca' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:04:07.907196"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R880222911' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R880222911%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R880222911' LIMIT 1 [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KShfiIbZjg82cVQgCXmd6A' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-7823' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-7823' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:04:07.943058"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.945126' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.946323' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.947624' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.952482' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.953017' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.954182' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.958689' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.959201' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:04:07.961550"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:07.962309' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.962805' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:07.963925' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-7823' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:07.977936' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-3160' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-3160' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:07.999170' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.000265' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.001971' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:04:08.010849' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.011772' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.013374' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.018425' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.019021' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:04:08.021995' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.022453' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:04:08.023498' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-3160' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:08.033418' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'celia@wisozk.biz' LIMIT 1 [1m[36mSQL (17.4ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:04:08.078560"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R368506247' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R368506247%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R368506247' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kbJPy1cSoqcU9exS9dCW3A' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PQ6RY3JM' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:04:08.090838' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-503124"], ["updated_at", "2014-11-12 20:04:08.092064"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'euna@trantow.us' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.6ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.237719"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R897961412' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R897961412%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R897961412' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QqR3vA4-EKWCsaDuK1-NzA' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:05:41.335355"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:05:41.335355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 771239' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-5218' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-5218' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.383794' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.385121' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.399002' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.423388' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.423978' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.425148' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.435928' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.436527' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.440045' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.440547' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.441584' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-5218' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.471890' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4628' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4628' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:05:41.545839"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.547849' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.548936' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.550173' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.559448' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.560352' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.562181' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.569120' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.569717' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.571863"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.572558' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.573051' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.574085' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4628' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.583928' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ali.torphy@jast.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R923121814' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R923121814%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R923121814' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SImauUigJLZNRkVPxP6GNA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PWCE5JRY' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.668969' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'wilber@johnstonharber.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.697392"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R535644313' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R535644313%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R535644313' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'v8iAom6RW9ZMqvYZ5Xz36g' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:05:41.714079"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:05:41.714079"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 294677' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4102' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4102' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.728673' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.729829' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.731364' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.736801' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.737431' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.738557' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.743344' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.745021' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.750880' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.751652' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.753353' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4102' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.764321' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8210' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8210' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:05:41.779448"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.781446' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.782540' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.783753' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.788758' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.789322' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.790503' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.795126' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.796758' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.801195"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.802374' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.803129' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.804820' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8210' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.815278' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nicola.heathcote@yost.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R677453009' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R677453009%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R677453009' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'cmMgdgcwG38qsUSpWJCEaA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZFE88YR3' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.851165' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'chelsie@gottlieb.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:41.876267"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R411446292' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R411446292%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R411446292' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bef6ZOnmHkZmrqliZy-59A' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:05:41.891972"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:05:41.891972"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 960509' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8245' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8245' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.906751' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.907902' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.909207' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.914257' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.914845' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.916230' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.921212' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.921870' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.924969' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.925449' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.926491' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8245' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.936227' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8342' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8342' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:05:41.952043"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.954086' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.955184' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.956462' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:41.961460' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.962011' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.963172' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.968042' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.968789' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:05:41.973960"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:41.975342' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.976134' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:41.977866' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8342' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:41.988794' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pietro_ankunding@friesen.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246975130' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R246975130%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246975130' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6jQztTRqyQyvaq0TA-WFHg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5FDWVTL8' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.040903' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'edwina@monahan.co.uk' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.063330"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R170041670' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R170041670%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R170041670' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7vnBc1scVurBOnTaHo9U5g' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:05:42.083704"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:05:42.083704"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 770321' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-453' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-453' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.098036' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.099203' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.100804' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.106002' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.106556' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.107652' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.112118' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.112619' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.118892' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.119841' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.121547' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-453' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.132590' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-5480' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-5480' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:05:42.149778"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.151848' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.152927' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.154143' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.159083' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.159610' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.160753' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.165378' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.165941' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:05:42.168279"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.169040' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.169590' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.170761' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-5480' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.180556' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jabari.schmidt@ebert.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R456134994' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R456134994%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R456134994' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XMLa3qQ8j-IyqxPua7u94g' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YYTG2YQS' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.217492' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allene.frami@bergnaum.info' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:05:42.238484"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674780589' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R674780589%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674780589' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iRO4my1CSj1ydRPp-ATfHg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:05:42.252754"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:05:42.252754"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 822077' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-458' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-458' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.4ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.267637' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.270530' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.273149' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.280799' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.281433' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.282501' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.287077' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.287694' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.290771' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.291288' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.292356' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-458' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.302570' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7927' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7927' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:05:42.320365"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.322320' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.323435' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.324719' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:05:42.329602' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.330114' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.331263' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.335727' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.336255' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:05:42.338603"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:05:42.339375' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.339925' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:05:42.341099' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7927' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.350550' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'johnpaul@binsstoltenberg.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.3ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R345777807' LIMIT 1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R345777807%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R345777807' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 't-GGx6CKg9gNLpsM80rX-g' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7TDQY3KN' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:05:42.393464' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ramiro_ward@russel.us' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.271035"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645094794' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R645094794%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R645094794' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XgNOrHJaPyCSk3WvtGIvOw' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:02.365735"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:06:02.365735"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 361512' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-3159' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-3159' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.415545' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.416955' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.431074' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.461302' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.461895' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.463096' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.473618' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.474219' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.477672' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.478209' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.479246' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-3159' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.503477' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3360' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3360' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:06:02.582808"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.585079' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.586292' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.587656' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.592381' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.592876' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.593966' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.598182' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.598731' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.601073"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.601842' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.602336' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.603474' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3360' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.612648' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'neil@tromp.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785831897' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R785831897%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785831897' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NyTau5A-Gw_q2Ro6Em_bNA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'AH2J544R' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.697063' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mercedes@stracke.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.720405"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655095229' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R655095229%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655095229' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'qQhgK_WNA3gGCu29sBeNCg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:02.735601"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:06:02.735601"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 289478' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9738' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9738' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.750089' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.751282' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.752824' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.761308' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.762201' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.764093' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.770015' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.770562' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.773339' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.773806' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.774895' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9738' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.784706' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7407' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7407' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:06:02.799274"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.801209' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.802247' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.803508' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.808304' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.808924' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.810049' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.814532' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.815074' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.819823"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.821161' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.822187' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.824047' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7407' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.835203' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kallie@hoeger.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R997691284' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R997691284%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R997691284' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'K8EdSYx1l3cDAUWJihX4eA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9Z6Z2SMZ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.872821' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zella_corwin@dooleywisoky.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:02.897147"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R378727071' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R378727071%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R378727071' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'B-gjr7WZqGHf7uWQoVoBrw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:02.912866"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:06:02.912866"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 816986' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1922' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1922' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.927830' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.928995' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.930303' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.935199' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.935712' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.936837' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.941210' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.941745' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.944808' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.945321' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.946464' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1922' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:02.956255' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-8446' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-8446' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:06:02.972401"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.974332' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.975372' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.976602' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:02.981400' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.981914' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.983075' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.987413' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.987959' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:02.990243"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:02.990967' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.991526' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:02.992739' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-8446' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.002595' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'robin.streich@senger.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R840137878' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R840137878%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R840137878' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'FiLucUP3fJxIF8upzyPQCg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NDR8KD7L' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.053213' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jermaine.schmitt@stammkirlin.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.072160"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642212063' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R642212063%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R642212063' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bg50AB6jKGVHJLb-r-NiCw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:03.088847"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:06:03.088847"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 727366' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-5880' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-5880' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.102695' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.103897' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.105361' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.110715' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.111295' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.112440' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.117075' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.117679' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.120760' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.121290' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.122429' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-5880' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.131786' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-7589' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-7589' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:06:03.147483"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.149441' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.150465' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.151649' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.156876' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.157407' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.158513' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.163242' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.163830' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.166155"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.166872' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.167398' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.168547' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-7589' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.177951' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'frederique.tremblay@windler.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R741778060' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R741778060%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R741778060' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Av-sD9UNi25xZc7ktyBaFg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2T4DPMS6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.213580' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garry@lakin.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.237422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R291206623' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R291206623%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R291206623' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KhrQp2E26SEO2NYXlohCLA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:03.252261"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:06:03.252261"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 365170' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1228' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1228' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.267087' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.268246' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.269553' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.274413' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.274932' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.276056' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.280896' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.281466' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.284470' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.284975' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.286147' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1228' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.297299' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6266' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6266' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:06:03.313805"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.315846' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.316967' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.318284' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.323352' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.323947' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.325113' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.329740' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.330347' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.334789"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.336160' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.337126' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.338845' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6266' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.350253' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kaitlyn@purdy.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:03.394096"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415786985' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R415786985%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415786985' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '53u8U_LP3n0EbOaN9X7IVg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:03.410077"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:06:03.410077"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 48800' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8465' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8465' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.424466' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.425606' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.427070' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.432396' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.433028' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.434172' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.438579' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.440179' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.445765' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.446499' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.448226' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8465' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.458650' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-365' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-365' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:06:03.476000"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.477974' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.479033' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.480274' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:03.485171' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.485683' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.486801' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.491115' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.491657' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:03.493991"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:03.494706' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.495241' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:03.496430' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-365' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.505803' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shanelle@emmerichterry.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R784986724' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R784986724%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R784986724' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fK3DmALgRgFtAN5mz4-uhQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'E6WETGXR' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:03.557747' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'margie@monahan.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.074534"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R529117890' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R529117890%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R529117890' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Xn9S5oh5_jeUGp3wHjg23A' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:21.173962"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:06:21.173962"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 388575' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2734' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2734' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.221200' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.222462' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.236137' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.259860' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.260431' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.261586' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.271847' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.272424' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.275722' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.276185' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.277168' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2734' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.306942' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-412' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-412' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:06:21.327296"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.329190' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.330209' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.331416' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.393741' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.394313' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.395459' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.399745' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.400263' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.402578"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.403321' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.403799' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.404907' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-412' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.413963' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'arely.pagac@williamson.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R935526600' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R935526600%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R935526600' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NGt5i6E5ISNr1_UZGIcZUw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZY5TXJR2' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.498794' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gerald@gorczany.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.527188"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821479452' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R821479452%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821479452' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'P5NUh80S3Lvtk06G9a2C-g' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:21.542033"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:06:21.542033"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 757140' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9522' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9522' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.561006' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.562789' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.564628' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.570126' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.570761' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.572025' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.576534' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.577146' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.580321' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.580832' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.581938' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9522' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.591541' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2861' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2861' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:06:21.609483"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.611443' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.612497' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.613708' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.618538' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.619030' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.620152' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.624321' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.624839' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.628862"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.630219' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.631221' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.633204' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2861' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.644660' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lacy_christiansen@millerlind.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153123569' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153123569%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153123569' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ety4Ojjxh6eczx-BdXbTJw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '3WW4EGKU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.680227' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyreek.kihn@reilly.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.703913"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912955092' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R912955092%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912955092' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NNdqdsf-n8x6ffsB2CJ0nA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:21.720851"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:06:21.720851"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 515444' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9843' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9843' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.734861' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.736170' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.737603' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.742787' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.743327' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.744458' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.749345' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.749965' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.753411' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.753919' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.755074' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9843' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.765350' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-806' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-806' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:06:21.781172"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.783132' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.784207' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.785458' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.790831' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.791395' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.792564' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.796883' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.797404' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.802290"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.803618' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.804578' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.806239' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-806' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.816985' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rafael.kulas@carroll.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R128496929' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R128496929%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R128496929' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CLVPHjZM4dLI53a0Wcsszw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'KNB3NFCU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.853215' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'emma@hansen.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:21.886536"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222942520' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R222942520%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R222942520' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9SAhMdvYWcpDQkr0tcix8A' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:21.902630"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:06:21.902630"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 578429' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6250' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6250' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.916641' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.917697' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.918957' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.923739' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.924247' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.925343' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.929680' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.930224' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.933306' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.933779' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.934930' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6250' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.944089' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-542' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-542' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:06:21.958692"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.960618' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.961639' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.962878' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:21.967451' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.967984' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.969108' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.973389' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.973918' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:21.976166"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:21.976934' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.977447' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:21.978568' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-542' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:21.987647' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'stanford.mckenzie@haagnikolaus.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R682996330' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R682996330%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R682996330' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'buY1oJkuMRrXavvi5CDeng' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DD3C5CTE' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.023222' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'morris@botsford.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:22.047067"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R628949815' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R628949815%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R628949815' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'l-LUVahcqAqnr2Nf6uxMMw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:22.062737"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:06:22.062737"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 740554' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-813' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-813' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.076938' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.078068' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.079323' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.084094' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.084607' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.085708' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.090357' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.090915' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.094003' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.094519' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.095608' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-813' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.105066' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3137' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3137' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:06:22.120404"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.122416' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.123488' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.124704' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.129360' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.129887' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.130974' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.135264' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.135775' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:22.138090"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.138815' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.139315' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.140440' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3137' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.149668' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m [1m[35m (3.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'juwan.jacobson@funkhackett.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:06:22.192145"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821736945' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R821736945%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R821736945' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Q8b6c38gfPlL4S4Cq3DwUQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:06:22.208431"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:06:22.208431"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 711468' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-3655' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-3655' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.222993' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.224189' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.225527' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.230466' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.230989' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.232087' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.236562' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.237082' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.242832' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.243802' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.245595' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-3655' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.256669' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4181' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4181' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:06:22.273286"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.275260' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.276303' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.277516' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:06:22.282202' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.282724' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.283816' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.288089' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.288598' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:06:22.292748"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:06:22.294075' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.295017' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:06:22.297062' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4181' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.308295' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tillman@fritschquitzon.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R751840878' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R751840878%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R751840878' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dQ23kU8puNLj-pA1pV-7_w' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CQ2EEG5Y' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:06:22.344683' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (14.9ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (3.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ava@sanfordbergstrom.ca' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.033061"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R213820093' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R213820093%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R213820093' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iVrLxt2op4q34gujKCwEzg' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:10:42.127007"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:10:42.127007"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 372423' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2411' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2411' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.173888' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.175148' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.188645' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.212818' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.213409' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.214529' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.224917' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.225487' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.228796' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.229243' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.230202' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2411' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.254224' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-8864' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-8864' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:10:42.272816"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.274737' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.275779' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.276964' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.334197' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.334732' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.335813' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.340203' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.340696' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.342691"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.343383' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.343820' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.344775' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-8864' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.354182' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reese.pfannerstill@mosciski.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846494735' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R846494735%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846494735' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4ZYHngOt8BaNuatovWGRIg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'L5M6TSYN' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.436253' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maribel_friesen@wolfhaley.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.461387"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R995458477' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R995458477%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R995458477' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Tqm-FM_aJyuR45NbEFClxA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:10:42.480425"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:10:42.480425"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 538553' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-7179' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-7179' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.494643' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.495755' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.497011' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.501828' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.502362' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.503422' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.508533' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.509205' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.512410' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.512928' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.514057' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-7179' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.523472' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7557' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7557' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:10:42.539682"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.541637' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.542737' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.543923' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.548723' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.549237' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.550292' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.554498' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.555008' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.557221"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.557940' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.558448' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.559601' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7557' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.568862' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allene_becker@kuphal.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R676115772' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R676115772%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R676115772' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'o9uicA3G8R2_QJXt_aPSoA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XEXYUJ48' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.604212' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aiden.goyette@mohr.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.630315"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R292561220' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R292561220%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R292561220' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jskw2GS4aNb13zozz0Db-A' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:10:42.647563"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:10:42.647563"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 494809' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1310' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1310' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.662461' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.663588' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.664822' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.669690' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.670218' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.671277' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.675698' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.676253' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.679365' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.679868' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.680905' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1310' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.690395' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9924' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9924' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:10:42.705632"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.707582' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.708660' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.709919' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.714781' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.715338' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.716500' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.721275' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.721780' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.724140"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.724854' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.725367' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.726520' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9924' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.735769' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlon@volkmanjones.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R750307609' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R750307609%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R750307609' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'U9N7HYXVvA762tjVCjpuPw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7L49F8LQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.772364' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kraig@cremin.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.811102"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R982081893' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R982081893%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R982081893' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MIZ0YDt65dgzU6qmNYncMA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:10:42.830215"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:10:42.830215"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 927682' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-9728' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-9728' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.845260' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.846337' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.847605' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.852827' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.853356' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.854419' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.859214' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.859809' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.862939' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.863478' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.864590' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-9728' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.875032' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8902' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8902' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:10:42.893869"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.896212' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.897300' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.898721' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:42.903410' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.903971' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.905012' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.909332' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.909870' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:10:42.914195"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:42.915263' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.915836' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:42.917074' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8902' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.927182' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kevon@mann.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R777504088' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R777504088%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R777504088' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'TC_DtJQnI0ZD3sQ8uSnmRg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LGQEQDLT' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:42.967963' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jalon@brakus.ca' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:42.987607"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R047839175' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R047839175%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R047839175' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nXawCpESU_E5VB2q5ucwmg' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:10:43.006758"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:10:43.006758"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 823733' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-3073' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-3073' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.024702' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.026201' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.027631' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.032705' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.033235' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.034433' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.039199' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.039713' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.042450' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.042922' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.043916' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-3073' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.053644' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3958' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3958' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:10:43.070334"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.072345' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.073404' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.074585' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.079227' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.079756' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.080796' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.085035' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.085536' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:10:43.087775"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.088529' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.089025' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.090131' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3958' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.099252' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.127105' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ova@fritsch.name' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:43.138370"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655780519' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R655780519%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R655780519' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'F1PhvodSmOn0ZSGJ_7MigA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FPUGJHPV' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.149496' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-113523"], ["updated_at", "2014-11-12 20:10:43.150646"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.3ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'danny_braun@russelreichert.info' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:10:43.174230"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082490802' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R082490802%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082490802' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'sMglPRHHZn2c04uLQXmZ_A' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-1154' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-1154' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:10:43.203952"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.205942' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.207039' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.208326' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.213803' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.214384' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.215462' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.219948' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.220458' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:10:43.222843"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.223622' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.224128' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.225216' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-1154' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.235034' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-9928' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-9928' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.253378' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.254431' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.255650' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:10:43.260437' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.260954' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.262027' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.266429' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.266925' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:10:43.270086' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.270602' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:10:43.271772' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-9928' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.281153' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'antonette@oga.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:10:43.321387"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R886866943' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R886866943%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R886866943' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_3jAOz7TGKO_rH3evlq98w' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YWBCQCDS' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:10:43.333152' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-223104"], ["updated_at", "2014-11-12 20:10:43.334306"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'audra_kris@dubuque.ca' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:07.929914"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R544396349' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R544396349%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R544396349' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EGqTDAWRI5tqejVbEpCQ2g' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:08.030632"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:11:08.030632"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 368166' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8714' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8714' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.078892' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.080188' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.2ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.093805' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.123634' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.124252' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.125451' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.136101' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.136694' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.140175' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.140650' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.141644' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8714' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.170858' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-891' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-891' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:11:08.189779"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.191747' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.192768' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.193925' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.252533' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.253079' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.254258' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.258611' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.259167' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.261258"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.261993' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.262483' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.263468' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-891' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.273122' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mary@champlin.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030031066' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R030031066%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R030031066' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'awtvd19KEyky0dXB6KRrWA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PCKVLTPC' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.360053' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'elsie_hudson@morissette.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.388784"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163211867' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R163211867%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163211867' LIMIT 1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hGI5Db50dgkJq47Nyb3hUg' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:08.409946"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:11:08.409946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 816833' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-431' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-431' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.425072' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.426404' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.427863' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.433110' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.433640' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.434773' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.439295' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.439916' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.443017' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.443527' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.444602' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-431' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.454120' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-4685' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-4685' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:11:08.472016"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.473996' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.475073' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.476347' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.481131' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.481658' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.482746' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.487082' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.487617' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.489885"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.490624' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.491137' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.492329' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-4685' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.504474' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hans.koss@borer.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R010743614' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R010743614%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R010743614' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'u2uSFd_0i9mbU09MexElIw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SLQPMFBP' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.544757' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shaina@oconner.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.564552"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R388687395' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R388687395%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R388687395' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LUIDgOr0eOA6wenwCO-g7Q' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:08.586907"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:11:08.586907"]] [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 287810' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-286' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-286' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.603188' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.604394' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.605662' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.610766' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.611360' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.612585' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.617252' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.618792' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.625569' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.626624' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.628129' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-286' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.643092' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-4231' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-4231' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:11:08.661930"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.664190' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.665328' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.666691' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.671995' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.672523' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.673660' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.678334' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.679163' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.681623"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.682364' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.682855' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.683916' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-4231' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.693784' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sylvia@abshire.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R172360811' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R172360811%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R172360811' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'i-sTaQ4JUNqHT2O2Xr51zw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ETB58J45' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.734774' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.2ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jacinthe.volkman@kris.ca' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:08.772807"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R612316941' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R612316941%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R612316941' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'L-82TsQvFHcGE--dVomCkg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:08.787216"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:11:08.787216"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 240160' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2948' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2948' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.802527' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.803613' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.804893' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.809884' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.810386' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.811482' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.816032' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.816570' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.822718' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.823681' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.825344' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2948' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.836429' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-4894' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-4894' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:11:08.851189"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.853190' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.854342' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.855591' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:08.860363' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.860900' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.863038' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.873048' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.874102' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:08.877452"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:08.878458' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.879101' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:08.880514' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-4894' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.890164' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mohammed@friesenschroeder.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R938369907' LIMIT 1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R938369907%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R938369907' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-3cRT_yHGTxKgyLp6QH2KA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7R2YPZCG' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:08.934463' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (104.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tristin@hamill.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:09.063072"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530175248' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R530175248%') [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R530175248' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-dK3yyFg6K4AmLN8uKimkw' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:09.086171"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:11:09.086171"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 458391' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-2972' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-2972' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.101416' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.102647' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.103884' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.108674' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.109211' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.110350' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.114749' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.115265' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.118395' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.118886' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.119995' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-2972' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.129936' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2164' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2164' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:11:09.153795"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.156024' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.157203' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.158524' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.163648' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.164232' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.165392' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.169973' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.170696' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:09.173022"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.173863' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.174411' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.175494' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2164' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.185093' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rick@smith.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R470420436' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R470420436%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R470420436' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'e8OR8Chjb6oJ9A9aEWCjeQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '97C44VDZ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.222925' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.249398' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (22.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'paolo.simonis@emmerich.ca' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:11:09.288818"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R017991758' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R017991758%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R017991758' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '49Ci7FsbyEijork8uH1LVg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5992' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5992' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:11:09.323334"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.325416' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.326594' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.327852' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.334768' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.335942' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.338214' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.343918' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.344506' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:09.346747"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.347420' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.347880' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.348909' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5992' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.359156' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-9030' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-9030' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.376494' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.377677' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.378928' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:09.383901' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.384417' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.385588' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.389975' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.390655' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:09.393827' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.394349' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:09.395419' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-9030' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.405287' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'griffin@mraz.info' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:09.446994"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662146798' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R662146798%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R662146798' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'apDSrKAqAGhSsNqUoUmw2g' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CPZ6M5CT' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:09.458910' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-144143"], ["updated_at", "2014-11-12 20:11:09.460141"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (10.8ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rey@williamson.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:52.844054"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R865130007' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R865130007%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R865130007' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ipxeTBYoNtui96xUZGfMTg' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:52.943920"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:11:52.943920"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 21742' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8493' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8493' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:52.991556' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:52.992890' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.006335' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.030294' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.030910' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.032069' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.042551' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.043147' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.046539' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.047011' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.048021' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8493' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.076050' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9715' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9715' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:11:53.095048"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.096979' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.098011' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.099201' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.161965' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.162536' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.163693' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.169635' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.171073' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.175312"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.176453' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.177215' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.179207' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9715' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.194141' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ally@larsonkessler.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R225032803' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R225032803%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R225032803' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'w-91xTC1Lm2pe9T6p3z0WQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'E3QYZ58L' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.286785' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'heath@nitzsche.co.uk' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.310222"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R585083801' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R585083801%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R585083801' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0bMrBJ4AH0-YE7lzJd8Pew' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:53.324518"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:11:53.324518"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 608029' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9822' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9822' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.338933' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.340164' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.341610' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.347024' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.347593' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.348771' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.353285' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.353864' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.357072' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.357606' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.358796' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9822' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.368436' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-1004' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-1004' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:11:53.383877"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.385859' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.386990' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.388444' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.393884' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.394445' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.395569' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.400030' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.400593' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.402966"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.403702' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.404216' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.405402' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-1004' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.414681' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'delilah.kshlerin@gibsonweimann.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R509574974' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R509574974%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R509574974' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nil9cDzItd0EQ0f3zdRJ_A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'DWEBJRG5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.450534' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'malinda.smith@bergstrom.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.474533"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R726276370' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R726276370%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R726276370' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5mx_BXrOEFqItGydx4KjZA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:53.488945"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:11:53.488945"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 447377' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8959' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8959' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.503182' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.504340' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.505637' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.510607' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.511250' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.512436' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.517059' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.517594' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.520801' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.521331' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.522527' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8959' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.532054' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-672' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-672' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:11:53.546565"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.548546' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.549624' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.550863' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.555676' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.556170' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.557244' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.561629' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.562136' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.564525"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.565297' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.565815' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.566981' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-672' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.576515' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adaline.rowe@lefflerdach.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R382479186' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R382479186%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R382479186' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UMDHWzbV7-X6zqKDBTSbxw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RLUHXLH6' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.613083' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aidan@gaylordfeeney.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.651792"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R920537061' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R920537061%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R920537061' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-AlRPqN0T1NtSpy-0DkVYg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:53.668235"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:11:53.668235"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 731570' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4634' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4634' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.682931' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.684097' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.685385' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.690294' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.690797' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.691927' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.696487' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.697194' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.700310' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.700877' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.702059' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4634' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.711783' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1492' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1492' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:11:53.728398"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.730405' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.731462' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.732754' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.737485' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.737974' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.739119' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.743525' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.744040' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.746516"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.747283' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.747800' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.749002' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1492' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.758388' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cole@gutkowski.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R432289602' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R432289602%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R432289602' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MTEWO4vZi2-nALVy_26beA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WZG5SLVU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.795947' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'malinda.hamill@towne.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.818782"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R990702032' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R990702032%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R990702032' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xlPOs0EfPwuJpOAmZe4pRA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:53.836946"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:11:53.836946"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 631469' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5242' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5242' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.851799' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.852899' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.854152' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.859021' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.859557' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.860637' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.865057' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.865597' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.868718' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.869238' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.870415' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5242' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.880008' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2547' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2547' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:11:53.896000"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.898069' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.899139' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.900357' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:53.905200' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.905725' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.906859' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.911180' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.911706' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:53.914071"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:53.914847' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.915379' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:53.916512' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2547' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.925957' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'delilah@bradtke.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674234859' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R674234859%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R674234859' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Hc-WePbnZNpPUfbsglD7jA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QJPQBSLG' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:53.961495' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mabel@hermannwisozk.com' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:11:53.986985"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R758452516' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R758452516%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R758452516' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nXa3q553v5LQNgCl698yZA' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:11:54.008245"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:11:54.008245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 604229' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2464' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2464' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.023700' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.024806' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.026083' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.030993' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.031523' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.032625' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.037011' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.037551' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.040605' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.041131' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.042275' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2464' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.051771' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4321' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4321' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:11:54.068919"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.070897' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.071970' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.073229' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:11:54.078068' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.078590' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.079711' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.084061' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.084596' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:11:54.087021"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:11:54.087791' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.088336' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:11:54.089530' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4321' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.099105' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reese_brown@halvorson.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R497668486' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R497668486%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R497668486' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QmXUt9b3CqMJLLTu8g-mNA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WJSUSN2Y' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.147860' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:11:54.167756' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (4.7ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'clement@vonmohr.info' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.094140"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R428797787' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R428797787%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R428797787' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 't55S6T9go3SznN-Bmntcww' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:20.195417"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:12:20.195417"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 873560' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-7181' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-7181' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.253053' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.254781' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.2ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.273317' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.297491' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.298100' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.299324' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.310262' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.310990' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.314587' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.315098' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.316151' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.2ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-7181' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.345834' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-47' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-47' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:12:20.365662"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.367625' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.368679' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.369905' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.428116' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.428652' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.429832' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.434313' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.434881' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.437008"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.437683' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.438133' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.439146' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-47' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.448765' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'graciela@schulist.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R797302636' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R797302636%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R797302636' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XvUsALue0IprgGK_r1zAqQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'L6RQG6BA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.534661' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ryleigh.morissette@price.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.563132"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R265088179' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R265088179%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R265088179' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'flCNkPqFXXYHucaH75AhIw' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:20.578573"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:12:20.578573"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 966382' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3367' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3367' LIMIT 1[0m [1m[35mSQL (0.5ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.597185' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.598910' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.600739' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.606081' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.606765' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.608075' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.613243' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.613903' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.617054' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.617577' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.618761' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3367' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.629075' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2033' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2033' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:12:20.646737"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.648819' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.649917' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.651186' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.656141' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.656646' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.657779' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.662163' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.662747' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.665092"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.665867' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.666379' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.667546' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2033' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.677304' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'vickie.kunze@schuster.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001355178' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001355178%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001355178' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'N-rtjS-lWInRlxc-Wa7KSA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'F34PQ5C3' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.714173' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'leatha@klocko.ca' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.732979"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R179749431' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R179749431%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R179749431' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zu2Ch-MV7JzlZ08CJq7HhQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:20.752859"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:12:20.752859"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 810945' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-6414' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-6414' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.768563' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.769731' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.771104' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.776726' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.777328' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.778558' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.783254' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.784859' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.790553' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.791296' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.792985' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-6414' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.803561' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2137' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2137' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:12:20.822216"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.824466' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.825614' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.827049' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.832004' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.832539' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.833669' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.838131' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.839657' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:20.844077"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.845227' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.845992' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.847678' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2137' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.858241' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hazle.hauck@towne.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625793971' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R625793971%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R625793971' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'g8GtrNV-I-Ua_5axVs9aEw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '2B7A68ZU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:20.895451' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'eugenia_mckenzie@donnelly.ca' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:20.932391"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R422756812' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R422756812%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R422756812' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'i9QWS9pvblrmdHXzdADpGw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:20.954230"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:12:20.954230"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 713870' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-4053' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-4053' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.969047' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.970169' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.971475' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:20.976278' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.976792' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.977913' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.982314' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.982852' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:20.988672' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.989637' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:20.991520' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-4053' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.002915' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1519' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1519' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:12:21.019862"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.021952' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.023063' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.024336' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.029130' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.029664' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.030775' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.035164' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.035710' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.038047"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.038776' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.039308' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.040467' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1519' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.049919' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alena.auer@reynolds.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R303794237' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R303794237%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R303794237' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1kWCrDxBOTdpmY-ZLNyV4g' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8DRFYACE' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.085401' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'gilberto_stokes@kohler.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.104219"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R299146515' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R299146515%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R299146515' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XA55xx52tdyT6YYSnnAcWw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:21.118326"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:12:21.118326"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 1181' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-7022' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-7022' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.132750' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.134030' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.135367' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.140230' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.140748' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.141924' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.147389' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.148040' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.151164' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.151676' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.152919' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-7022' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.162413' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-3613' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-3613' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:12:21.177215"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.179540' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.180590' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.181840' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.186555' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.187061' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.188141' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.192424' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.192944' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.195206"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.195946' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.196450' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.197572' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-3613' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.206790' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.235405' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kailey@breitenberg.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:21.247991"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R004152494' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R004152494%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R004152494' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tUmqTeJZktKr4_ECu4dBHQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'P8FLAYJC' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.259432' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-004220"], ["updated_at", "2014-11-12 20:12:21.260575"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kole.russel@zulaufrunolfsson.ca' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:21.277730"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R406966896' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R406966896%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R406966896' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '14HAIw1hyEryPl_Rxn3qPw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-989' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-989' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:12:21.306219"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.308576' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.309783' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.311415' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.316896' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.317441' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.318632' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.323107' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.323644' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:21.328708"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.330075' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.330961' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.332649' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-989' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.344020' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-2339' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-2339' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.363191' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.364305' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.365583' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:21.370448' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.370974' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.372104' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.376544' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.377075' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:21.380225' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.380801' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:21.382009' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-2339' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.391627' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.2ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.424691' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'waylon@windler.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R681465512' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R681465512%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R681465512' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wQllASgvFyM17sqGOugiQw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8QQFZ2DC' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:21.447426' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'filiberto@kautzerrenner.biz' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:57.426065"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R593363119' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R593363119%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R593363119' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mrJDt2j97hftNbFMPa9_Lw' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6735' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6735' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:12:57.565785"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.573198' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.574490' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.588161' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.612548' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.613121' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.614277' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.624836' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.625421' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.627622"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.628772' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.629240' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.630224' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6735' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.662960' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9266' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9266' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.737532' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.738601' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.739810' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.744581' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.745078' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.746117' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.750412' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.750974' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.753956' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.754456' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.755522' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9266' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.765643' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9351' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9351' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:12:57.781168"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.783030' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.784042' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.785264' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.789499' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.789999' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.791035' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.795218' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.795683' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.797772"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.798403' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.798888' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.799865' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9351' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.814682' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-9077' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-9077' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.833435' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.834483' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.835730' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.840061' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.840556' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.841611' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.845957' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.846468' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.849215' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.849675' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.850715' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-9077' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.861919' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-9912' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-9912' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:12:57.878877"]] [1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.881019' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.882339' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.883632' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.888134' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.888708' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.889841' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.894216' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.894712' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:57.896852"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.897532' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.897985' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.899004' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-9912' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.910642' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.939206' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.940410' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.941722' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.946326' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.947358' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.948503' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.952249' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.953257' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.954451' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.959193' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.960241' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.961404' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:57.965031' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:57.966211' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:57.967443' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H01411134678%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:57.975579' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:58.046831"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:58.046831"]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.079587' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.080221' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.082343' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.082776' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.084777' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.085207' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.087425' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.087881' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.089880' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.090377' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.4ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kenyatta@berge.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R034234606' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R034234606%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R034234606' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'n9p0X5AXHDIFeu5xiuTEzA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'F7ZTCWMK' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.182664' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.2ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.1ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (173.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'joanie.schaefer@mcglynn.info' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:58.379832"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.385084"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393662699' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R393662699%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393662699' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NK49MOkSXGviSyeNr8EqfA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:58.400389"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:12:58.400389"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 990466' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.2ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-4317' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-4317' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.415195' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.416522' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.417876' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.422530' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.423078' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.424189' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.428860' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.429387' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.432126' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.432595' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.433631' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-4317' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.449103' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-1987' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-1987' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:12:58.466358"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.468291' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.469338' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.470517' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.474793' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.475275' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.476334' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.480571' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.481079' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.483093"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.483761' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.484214' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.485228' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-1987' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.495860' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2368' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2368' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.513939' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.514954' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.516131' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.520375' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.520859' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.521924' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.526119' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.526655' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.529375' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.529825' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.530913' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2368' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.541791' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1670' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1670' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:12:58.557374"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.559261' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.560303' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.561468' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.565690' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.566185' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.567224' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.571474' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.571988' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.574078"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.574690' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.575137' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.576160' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1670' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.586819' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-345' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-345' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.605898' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.606932' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.608113' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.612446' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.612937' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.614006' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.618226' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.618808' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.621535' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.621993' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.622992' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-345' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.633778' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.648710' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.649826' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.651104' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.655190' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.656239' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.657359' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.661056' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.662086' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.663225' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.668236' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.669333' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.670497' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.674237' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.675271' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.676996' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H10643513318%')[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.681428' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.1ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.715261' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.715856' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.717869' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.718327' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.720272' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.720708' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.722976' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.723435' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:58.725382' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.725826' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'valentin@considine.co.uk' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.745722"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R491218793' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R491218793%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R491218793' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Qy5tQ7bh4ztCydgdkkF9-Q' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WBP3SMHC' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.757879' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-413430"], ["updated_at", "2014-11-12 20:12:58.759112"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (14.7ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alexanne_considine@grantsatterfield.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:58.799636"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358976832' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R358976832%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R358976832' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zwbG9dPpmotnVBkm_VYZHg' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-7121' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-7121' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:12:58.837622"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.839688' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.840791' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.842054' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.846561' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.847045' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.848117' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.852502' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.853029' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.855159"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.855827' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.856321' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.857374' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-7121' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.868422' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1605' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1605' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.886068' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.887127' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.888310' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.892591' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.893103' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.894202' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.898463' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.898999' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.901788' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.902257' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.903270' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1605' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.919119' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-13-6272' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-13-6272' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-13' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-13"], ["updated_at", "2014-11-12 20:12:58.936571"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.938444' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.939503' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.940799' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.945130' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.945629' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.946684' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.950939' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.951443' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:58.953503"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.954140' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.954590' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.955607' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-13-6272' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:58.966312' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-14-3521' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-14-3521' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-14' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.986757' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.987775' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.988959' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:58.993197' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.993695' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.994749' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:58.998982' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:58.999493' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.002277' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.002730' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.003763' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-14-3521' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.015063' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-15-8389' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-15-8389' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-15' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-15"], ["updated_at", "2014-11-12 20:12:59.033053"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.034890' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.035922' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.037111' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.041329' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.041827' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.042886' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.047083' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.047584' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.049641"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.050266' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.050727' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.051746' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-15-8389' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.062364' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.076686' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.077775' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.078990' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.082708' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.083690' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.084747' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.088264' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.089236' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.090314' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.094161' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.095212' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.096334' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.099871' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.100865' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.101960' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H07461124175%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.106227' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:59.128863"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:59.128863"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.1ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.137988' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.138607' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.140599' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.141049' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.142959' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.143410' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.145338' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.145798' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.147697' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.148151' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garry.volkman@wuckertbecker.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R710640951' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R710640951%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R710640951' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'd5NHfvzd7C7r7Sq7_ov3rA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JYXP2LHA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.179197' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::ShippingRate Load (0.1ms)[0m [1mSELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1[0m [["shipment_id", 1]] [1m[35mSpree::ShippingMethod Load (0.0ms)[0m SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (5.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sydni_emmerich@swaniawski.us' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:12:59.208092"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.213478"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R771883232' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R771883232%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R771883232' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AxyZ1skqC9h_87tOJPKu1w' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "ship_address_id", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:59.241123"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:12:59.241123"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 945614' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-16-2971' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-16-2971' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-16' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.256109' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.257260' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.258529' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.263102' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.263632' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.264698' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.269199' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.269725' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.272523' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.272993' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.274027' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-16-2971' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.284993' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-17-6714' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-17-6714' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-17' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-17"], ["updated_at", "2014-11-12 20:12:59.303316"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.305269' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.306342' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.307559' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.311805' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.312325' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.313434' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.317714' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.318275' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.320440"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.321125' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.321600' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.322678' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-17-6714' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.333554' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-18-3427' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-18-3427' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-18' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.353405' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.354468' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.355690' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.359905' WHERE "spree_variants"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.360413' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.361520' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.365784' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.366284' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.369188' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.369674' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.370759' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-18-3427' AND "spree_products"."id" != 3) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.381697' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-19-5805' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-19-5805' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-19' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 4], ["sku", "SKU-19"], ["updated_at", "2014-11-12 20:12:59.397693"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.399585' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.400625' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.401798' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.406010' WHERE "spree_variants"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.406525' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.407617' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.411967' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.412468' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 4[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.414615"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.415251' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.415729' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.416818' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-19-5805' AND "spree_products"."id" != 4) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.432127' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-20-2413' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-20-2413' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-20' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.453472' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.454524' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.455716' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.459916' WHERE "spree_variants"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.460386' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.461472' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.465760' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.466280' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.469025' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.469478' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.470553' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-20-2413' AND "spree_products"."id" != 5) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.481298' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.495751' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.496859' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.498021' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.501819' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.502847' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.503941' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.507542' WHERE "spree_variants"."id" = 3[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.508511' WHERE "spree_products"."id" = 3[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.509612' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.513596' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.514764' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.515977' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.519709' WHERE "spree_variants"."id" = 5[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.520914' WHERE "spree_products"."id" = 5[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.522097' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H21047543385%')[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.526398' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zones" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::ZoneMember Exists (0.0ms)[0m SELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1 [["zone_id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_zone_members" ("created_at", "updated_at", "zone_id", "zoneable_id", "zoneable_type") VALUES (?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ZoneMember Load (0.0ms)[0m SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSpree::ZoneMember Load (0.0ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? AND (zoneable_id IS NULL OR zoneable_type != 'Spree::Country')[0m [["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?)[0m [["shipping_method_id", 1], ["zone_id", 1]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Order Load (0.0ms)[0m SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.552183' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.552763' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.554778' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.555210' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.557096' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.557520' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.559453' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.559886' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.561801' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.562234' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jamaal_ankunding@davis.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.581307"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R817122199' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R817122199%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R817122199' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'qW84O60SGWfuQeVHhNqI4Q' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'P5QKHTGE' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.592585' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-253001"], ["updated_at", "2014-11-12 20:12:59.593773"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hipolito@stanton.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:12:59.623524"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R624369886' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R624369886%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R624369886' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '3vKoYKYWCpycHu6o0z73Qg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-21-9604' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-21-9604' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-21' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-21"], ["updated_at", "2014-11-12 20:12:59.657330"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.659685' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.660943' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.662231' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.666837' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.667401' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.668579' WHERE 1=0 [1m[36mSQL (12.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.685632' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.686244' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.688476"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.689151' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.689619' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.690658' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-21-9604' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.701615' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-22-9132' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-22-9132' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-22' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.721247' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.722310' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.723534' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.727898' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.728434' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.729543' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.733870' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.734394' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.737207' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.737699' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.738731' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-22-9132' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.749380' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-23-6382' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-23-6382' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-23' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-23"], ["updated_at", "2014-11-12 20:12:59.765541"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.767384' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.768424' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.769598' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.773805' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.774309' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.775377' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.779743' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.780266' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.782325"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.783004' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.783443' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.784468' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-23-6382' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.795125' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-24-9383' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-24-9383' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-24' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.814424' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.815466' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.816643' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.820815' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.821309' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.822339' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.826760' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.827283' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.830094' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.830555' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.831574' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-24-9383' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.842330' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-25-2736' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-25-2736' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-25' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-25"], ["updated_at", "2014-11-12 20:12:59.860080"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.861928' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.862994' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.864153' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.868369' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.868844' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.869923' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.874252' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.874769' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:12:59.876881"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.877516' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.877968' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.878973' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-25-2736' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.3ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.893887' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.909818' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.910928' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.912141' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.915919' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.916931' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.918045' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.921807' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.922875' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.924051' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.928202' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.929317' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.930449' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:12:59.934241' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:12:59.935300' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:12:59.936497' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H85854128737%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.940866' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:12:59.961229"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:12:59.961229"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.970447' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.971037' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.973048' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.973515' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.975448' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.975881' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.977844' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.978289' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:12:59.980241' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:12:59.980701' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.5ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.004703' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sim@wehner.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.016681"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R139051856' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R139051856%') [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R139051856' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QS4lKIXdqESZt-tScrtigw' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'CC7TMKUQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.028229' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-153101"], ["updated_at", "2014-11-12 20:13:00.029438"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (5.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'katlynn@wolfgibson.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.059100"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234080015' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R234080015%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234080015' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MEv2Wdq2BH0l51UDQKVnCw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-26-31' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-26-31' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-26' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-26"], ["updated_at", "2014-11-12 20:13:00.090009"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.092418' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.093756' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.095085' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.114881' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.115400' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.116520' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.120903' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.121487' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.123691"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.124368' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.124831' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.125872' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-26-31' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.136893' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-27-7675' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-27-7675' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-27' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.157011' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.158075' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.159268' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.163615' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.164125' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.165198' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.169432' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.169950' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.172763' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.173226' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.174243' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-27-7675' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.184892' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-28-5966' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-28-5966' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-28' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 3], ["sku", "SKU-28"], ["updated_at", "2014-11-12 20:13:00.200700"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.202532' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.203575' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.204750' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.208973' WHERE "spree_variants"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.209456' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.210498' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 3[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.214756' WHERE "spree_products"."id" = 3[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.215261' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 3[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.217313"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.217928' WHERE "spree_products"."id" = 3 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.218370' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.219371' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-28-5966' AND "spree_products"."id" != 3) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.229889' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 3], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-29-5159' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-29-5159' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-29' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.249650' WHERE "spree_variants"."id" = 4[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.250699' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.251850' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.256058' WHERE "spree_variants"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.256536' WHERE "spree_products"."id" = 4[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.257581' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 4 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.261785' WHERE "spree_products"."id" = 4 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.262278' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.265070' WHERE "spree_products"."id" = 4[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.265525' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.266558' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-29-5159' AND "spree_products"."id" != 4) LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.277102' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSQL (0.1ms)[0m [1mSELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 4], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-30-9774' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-30-9774' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-30' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 5], ["sku", "SKU-30"], ["updated_at", "2014-11-12 20:13:00.292978"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.294872' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.295914' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.297151' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.301646' WHERE "spree_variants"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.302140' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.303198' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 5[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.307386' WHERE "spree_products"."id" = 5[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.307877' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 5[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:13:00.309950"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.310597' WHERE "spree_products"."id" = 5 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.311038' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.312030' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "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'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-30-9774' AND "spree_products"."id" != 5) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.322522' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSQL (0.1ms)[0m SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 1) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 2)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 5], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.336990' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.338106' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.339534' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.343348' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.344402' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.345508' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.349081' WHERE "spree_variants"."id" = 3 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.350087' WHERE "spree_products"."id" = 3 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 3]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.351311' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.355518' WHERE "spree_variants"."id" = 4 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.356567' WHERE "spree_products"."id" = 4 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 4]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.357703' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:13:00.361297' WHERE "spree_variants"."id" = 5 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:13:00.362318' WHERE "spree_products"."id" = 5 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 5]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:13:00.363579' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H45742287234%') [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipments" ("cost", "created_at", "number", "order_id", "state", "stock_location_id", "tracking", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.367837' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Shipment"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'GlobalZone' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::ZoneMember Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? LIMIT 1[0m [["zone_id", 1]] [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_zones" SET "zone_members_count" = COALESCE("zone_members_count", 0) + 1 WHERE "spree_zones"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ZoneMember Load (0.1ms)[0m [1mSELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ?[0m [["zone_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Zone Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1[0m [1m[35mSpree::ZoneMember Load (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Zone Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_zones" WHERE ("spree_zones"."name" = 'GlobalZone' AND "spree_zones"."id" != 1) LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_methods" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:13:00.389631"], ["name", "UPS Ground"], ["updated_at", "2014-11-12 20:13:00.389631"]] [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_method_categories" ("created_at", "shipping_category_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_shipping_methods_zones" ("shipping_method_id", "zone_id") VALUES (?, ?) [["shipping_method_id", 1], ["zone_id", 1]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Order Load (0.0ms)[0m [1mSELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.398847' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.399419' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.401429' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.401874' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.403740' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.404172' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.406064' WHERE "spree_shipments"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.406475' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_shipments" SET "updated_at" = '2014-11-12 20:13:00.408403' WHERE "spree_shipments"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.408839' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.421824' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bobby@jacobsonkessler.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:13:00.432868"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R869480622' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R869480622%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R869480622' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'sfTbrhvW8y9y_LHqg6WJiQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XX8WR6BG' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:13:00.444075' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-300302"], ["updated_at", "2014-11-12 20:13:00.445487"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 3]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 4]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 4]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 5]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 5]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::ShippingRate Load (0.1ms)[0m SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 1]] [1m[36mSpree::ShippingMethod Load (0.0ms)[0m [1mSELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ozella.moore@johnson.name' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.9ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.216277"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R380655459' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R380655459%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R380655459' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dVGtf4oUD09QEKKNsS06EA' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:17:02.310422"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:17:02.310422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 500750' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-2720' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-2720' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.357010' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.358303' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.371595' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.394364' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.394969' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.396119' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.406388' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.407026' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.410346' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.410817' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.411837' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-2720' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.436711' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4791' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4791' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:17:02.457994"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.459902' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.460950' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.462162' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.518329' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.518920' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.520125' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.524572' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.525133' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.527193"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.527892' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.528364' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.529351' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4791' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.538908' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'patsy.hackett@hansen.biz' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R736999711' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R736999711%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R736999711' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'IJkcqFhyqxu10uCHSNctQw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'K6CES74K' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.628508' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cordelia_oga@kuhlman.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.656754"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234853791' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R234853791%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R234853791' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Sh6fGp7d7YBKwBh7HFonog' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:17:02.671178"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:17:02.671178"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 386777' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-6931' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-6931' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.685749' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.687061' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.688432' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.693427' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.693975' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.695130' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.699569' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.700163' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.706198' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.707131' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.708929' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-6931' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.720161' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-9596' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-9596' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:17:02.737942"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.739979' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.741053' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.742321' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.747183' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.747744' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.748932' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.753212' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.753759' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.758235"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.759610' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.760663' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.762452' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-9596' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.773656' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adaline@langoshfeest.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082440884' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R082440884%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R082440884' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OM8ODzkU4hN8dFYfIcdzZg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'GEKWLLQX' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.810651' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'koby_lynch@batz.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:02.829304"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R571620433' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R571620433%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R571620433' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QcIp_z8XS7xV6dkaSb8JaA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:17:02.846400"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:17:02.846400"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 329558' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8198' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8198' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.862248' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.863504' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.864883' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.870636' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.871363' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.872710' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.878508' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.879362' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.882753' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.883377' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.884677' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8198' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.897137' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9074' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9074' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:17:02.918129"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.920432' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.921767' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.923267' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:02.929668' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.930403' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.931772' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.937209' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.937912' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:17:02.940252"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:02.940971' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.941484' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:02.942556' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9074' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.952704' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lauriane@muraziktrantow.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996563119' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R996563119%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R996563119' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Jh1NTU8E_SsOdPMWz3zKmw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'GT7B357F' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:02.992945' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cale.hoppe@littel.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.031472"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785808796' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R785808796%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R785808796' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UZsRfsvrDdNmCXXE-QzzBw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:17:03.052043"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:17:03.052043"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 946475' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-1162' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-1162' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.066651' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.067744' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.068975' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.073770' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.074294' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.075424' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.079887' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.080446' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.086210' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.087201' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.089073' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-1162' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.100443' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2472' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2472' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:17:03.117600"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.119566' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.120640' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.121937' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.126729' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.127262' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.128359' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.132831' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.133402' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.137937"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.139273' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.140193' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.141826' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2472' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.152922' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'claudia@schummblanda.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R629788265' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R629788265%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R629788265' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4QTwm42CGt9bxruood-TcA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'SWMEPSUK' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.188745' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'freeman@rippin.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.212870"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153007749' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153007749%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153007749' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ibRKnLZ-4kzm3621FM6k7w' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:17:03.227941"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:17:03.227941"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 172991' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6617' LIMIT 1 [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6617' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.246994' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.248607' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.250273' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.255487' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.256274' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.257612' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.262659' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.263288' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.266370' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.266860' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.268255' WHERE 1=0 [1m[36mSQL (0.5ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6617' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.280191' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-2755' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-2755' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:17:03.298774"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.300751' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.301815' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.303078' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.308357' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.308965' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.310156' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.314678' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.316273' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.320585"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.321732' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.322484' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.324106' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-2755' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.334919' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.363548' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'michael@wintheiser.info' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:17:03.374957"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579283496' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R579283496%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579283496' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_Fg-kjqBwQv4pdffG4TukQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6LVDFULL' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.386293' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-453202"], ["updated_at", "2014-11-12 20:17:03.387503"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'darrick@kiehn.name' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:17:03.409258"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R156766689' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R156766689%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R156766689' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xPUQMEnMugT2TLJyiuf-3g' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-9818' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-9818' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:17:03.436589"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.438799' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.440133' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.443539' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.451648' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.452419' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.453744' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.458767' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.459419' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:17:03.461787"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.462488' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.462944' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.463967' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-9818' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.473940' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1696' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1696' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.493186' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.494241' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.495488' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:17:03.500340' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.500869' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.502039' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.506364' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.506910' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:17:03.510016' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.510562' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:17:03.511704' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1696' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.521087' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.554930' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'horacio.torp@hermann.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R098841283' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R098841283%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R098841283' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'A-KNqjRaXQzvDyn0KR97cw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WVQR3XFE' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:17:03.576891' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dasia.hamill@kuhn.info' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:29.612416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R707195561' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R707195561%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R707195561' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DPr0rCei1ZFJN11Y3ZT35A' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:19:29.706323"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:19:29.706323"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 550609' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6299' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6299' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.753227' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.754505' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.767948' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.869794' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.870407' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.871617' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.4ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.882572' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.883166' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.886588' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.887046' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.888045' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6299' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:29.912500' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-5150' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-5150' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:19:29.933070"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.934935' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.935940' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.937140' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:29.941662' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.942161' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.943203' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.947607' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.948085' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:19:29.950393"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:29.951123' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.951603' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:29.952615' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-5150' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:29.961364' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lavon_hintz@bradtkeadams.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675628303' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R675628303%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675628303' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'smNKumzIiAeu4YtNmnvaEg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'RXR9N93L' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.040614' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'audreanne@schroederlang.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.067621"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R827973840' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R827973840%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R827973840' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NXx8W6pQkzQKjt3T3-WehQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:19:30.080692"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:19:30.080692"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 84061' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-6432' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-6432' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.094069' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.095355' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.096874' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.101746' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.102282' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.103359' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.107596' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.108077' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.110923' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.111405' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.112479' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-6432' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.121634' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2866' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2866' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:19:30.135985"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.137831' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.138828' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.139989' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.144476' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.144963' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.145999' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.150062' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.150533' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.152605"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.153274' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.153768' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.154820' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2866' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.163725' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hayden_conn@kubabernathy.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R844340965' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R844340965%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R844340965' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YtSIhFKRwkrX3GJUw3VOGw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'FBPRPQ3X' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.197264' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carmelo_dibbert@koepp.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.220641"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R890243087' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R890243087%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R890243087' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lJ_q4J6hMDY4GsRB9whFmQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:19:30.236433"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:19:30.236433"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 579274' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-1676' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-1676' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.250117' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.251252' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.252485' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.257079' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.257598' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.258649' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.262841' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.263416' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.269033' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.269974' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.272271' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-1676' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.283657' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-5903' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-5903' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:19:30.298086"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.299954' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.315754' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.317051' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.321838' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.322371' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.323469' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.327899' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.328404' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.330695"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.331417' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.331941' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.333063' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-5903' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.342133' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'enid@okeefe.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R889628031' LIMIT 1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R889628031%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R889628031' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Vkcdxn1BD7-jOO4_LcZnMQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'D9BVKWAE' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.378644' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'judah@kunze.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.402863"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415389023' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R415389023%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R415389023' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '1dfWlvYx5en-zk9bFuxYCw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:19:30.418642"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:19:30.418642"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 636443' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3923' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3923' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.433236' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.434480' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.435891' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.440658' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.441147' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.442212' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.446606' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.447101' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.450014' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.450535' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.451631' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3923' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.461142' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-893' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-893' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:19:30.475619"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.477558' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.478609' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.479823' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.484692' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.485228' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.486337' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.490720' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.491224' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.493470"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.494154' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.494667' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.495758' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-893' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.505080' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ezequiel@lehner.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846171441' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R846171441%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R846171441' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Do05ckcx1cBys79twRM8MQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8ZZC9ACH' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.539879' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'imogene_sipes@langworth.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.563980"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R261951568' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R261951568%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R261951568' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'PIaoTP_x8XPvoOuxaLjWlg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:19:30.577735"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:19:30.577735"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 498927' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9895' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9895' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.595457' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.597233' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.599459' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.605204' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.605761' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.606901' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.611340' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.611860' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.615159' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.615642' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.616801' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9895' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.626344' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-6600' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-6600' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:19:30.642872"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.644791' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.645880' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.647134' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.651963' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.652509' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.653653' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.658039' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.658561' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.662820"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.664140' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.665083' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.666833' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-6600' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.677909' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.706380' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'margret@pacocha.info' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:19:30.717968"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053470925' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R053470925%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R053470925' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wIf3o7J0-0OD0QzlvcUZ5w' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QKCB2MV7' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.729366' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-050215"], ["updated_at", "2014-11-12 20:19:30.730587"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.3ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cesar_lubowitz@dachlueilwitz.biz' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:19:30.754725"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R325237295' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R325237295%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R325237295' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SbZb8v3cPxYDz04uZxVKmQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8969' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8969' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:19:30.787935"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.790226' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.791393' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.792665' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.812288' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.812873' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.813975' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.818491' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.819006' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:19:30.821081"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.821768' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.822232' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.823242' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8969' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.833076' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-4819' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-4819' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.849687' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.850753' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.852213' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:19:30.856990' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.857539' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.858607' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.863001' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.863517' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:19:30.866609' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.867131' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:19:30.868278' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-4819' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.877625' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.895988' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jeanne_roberts@bosco.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088627594' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R088627594%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R088627594' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dM10ErV3QleHs7DfU1RuWQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9GGGW7CU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:19:30.918441' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'oral@kutch.info' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.9ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:25.729470"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R851104246' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R851104246%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R851104246' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'iRXKMfosXkQUzgaAu944XQ' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:25:25.833351"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-12 20:25:25.833351"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 714257' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8596' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8596' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:25.879899' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:25.881170' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:25.894482' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.001934' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.002592' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.003851' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.014770' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.015398' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.019199' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.019714' WHERE 1=0 [1m[36mSQL (0.7ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.022050' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8596' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.052152' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-9489' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-9489' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-12 20:25:26.072142"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.074066' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.075098' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.076290' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.081014' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.081578' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.082634' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.086965' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.087451' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.092164"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.093502' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.094402' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.095956' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-9489' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.106812' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'clemens@williamsonebert.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R693320423' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R693320423%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R693320423' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'WFhHiDMJWm3kjYtBG1Ycog' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4WJZNW32' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.188177' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (102.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'addison.rice@reynoldstremblay.info' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.314207"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015076632' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R015076632%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015076632' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fuomwdniWnWIADNRMw7blA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:25:26.327514"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-12 20:25:26.327514"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.3ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 647525' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-4274' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-4274' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.347255' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.348362' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.349618' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.354983' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.355534' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.356585' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.360919' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.361410' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.364335' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.364831' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.365908' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-4274' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.375319' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.4ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-2593' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-2593' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-12 20:25:26.390654"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.392612' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.393653' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.394839' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.399393' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.399908' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.400900' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.405440' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.405934' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.408076"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.408796' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.409301' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.410375' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-2593' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.419387' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'adolphus_effertz@dooley.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R052206304' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R052206304%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R052206304' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'z-WY1ezeMRK0_0zjMlcJDw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V9UAHM9A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.459357' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (101.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'coby@considine.us' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.580924"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R081865242' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R081865242%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R081865242' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2aPIZWAfYx0CemH2_FVaYA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:25:26.597325"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-12 20:25:26.597325"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 415824' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8847' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8847' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.611236' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.612307' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.613503' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.618123' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.618780' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.620088' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.624668' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.626250' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.631772' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.632485' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.634057' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8847' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.644355' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-2200' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-2200' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-12 20:25:26.660574"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.662435' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.678226' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.679597' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.684529' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.685059' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.686191' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.690660' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.692002' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.696598"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.697811' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.698548' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.700230' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-2200' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.710712' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'flavio@raynor.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834987009' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R834987009%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R834987009' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '91wKeH30cYg9nB61pmX_QA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VTE2827T' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.745843' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.9ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'deshawn_hirthe@corkery.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.764364"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399609231' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R399609231%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399609231' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'G5T221btqtO42113euqF1Q' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:25:26.786255"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-12 20:25:26.786255"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 912966' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8624' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8624' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.801130' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.802310' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.803799' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.808868' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.809428' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.810452' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.814779' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.815298' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.818333' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.818855' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.819957' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8624' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.829293' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-8288' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-8288' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-12 20:25:26.845546"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.847455' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.848486' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.849692' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.854389' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.854925' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.855953' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.860355' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.860866' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:25:26.863103"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.863794' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.864323' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.865426' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-8288' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.874504' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'vinnie.rath@lind.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R306597347' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R306597347%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R306597347' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YLB6zLnhwS81792C0K8HjA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'M6KHC2SU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.909842' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (5.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lisette@auerkautzer.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:26.934834"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635973067' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R635973067%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R635973067' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'gysNOhHDaYHz5PTmp5PNHw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:25:26.949983"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-12 20:25:26.949983"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 890031' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5763' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5763' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.964270' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.965404' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.966733' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:26.972059' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.972710' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.973901' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.978462' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.979028' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:26.982154' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.982675' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:26.983859' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5763' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:26.993338' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-612' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-612' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-12 20:25:27.009815"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.011798' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.012912' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.014106' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.018908' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.019444' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.020544' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.024916' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.025487' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:25:27.028001"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.028789' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.029321' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.030483' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-612' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.040106' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.068445' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'laney@west.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:25:27.080230"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R685024268' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R685024268%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R685024268' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'U4ZmNoelGFAemHlee_YNQw' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '79MJYXYE' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.091943' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-153444"], ["updated_at", "2014-11-12 20:25:27.093166"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.4ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'novella_jewess@hartmann.ca' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:25:27.115001"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R720234035' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R720234035%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R720234035' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9USYirGTdfEtwtQqEUmP_Q' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-5093' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-5093' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-12 20:25:27.145224"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.147566' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.148673' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.149906' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.169710' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.170281' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.171376' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.175938' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.176476' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:25:27.178830"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.179573' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.180109' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.181249' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-5093' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.190434' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-2606' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-2606' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.208344' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.209401' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.210620' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:25:27.215271' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.215771' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.216809' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.221061' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.221580' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:25:27.224520' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.225049' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:25:27.226207' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-2606' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.235417' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.253618' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brittany@greenholt.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R875410038' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R875410038%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R875410038' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kPJ18xFKcrm_q_3-Vu71xA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'ZTM8SZXG' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:25:27.275337' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'garfield@gislasonlittle.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.8ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.077203"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393826749' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R393826749%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393826749' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CjQvCDm_sMDUPS7uxi0Fmw' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (42.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kory.shanahan@orn.name' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.179231"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R323616419' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R323616419%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R323616419' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5M_6w6EeqNuJ5lUBCimPTA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (60.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'erika.ankunding@renner.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.262662"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R458847185' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R458847185%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R458847185' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'QiFtzIy3lt2_uWnqMvhroA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (109.4ms)[0m [1mrollback transaction[0m [1m[35m (0.2ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'orval@wilkinson.name' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.394447"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912644082' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R912644082%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R912644082' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tugGOBGGEgRNNHcU1fMfhA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (112.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tyson.swaniawski@lueilwitz.info' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.534961"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194312451' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R194312451%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R194312451' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xJp0oIrqW2xwKjQ5KriRfg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (113.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'stella_christiansen@schuppe.biz' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.674455"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978299559' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R978299559%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R978299559' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jeNWYLZaiinYRajUHJYNLA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (105.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brandon.gerlach@kreiger.info' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.808674"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811754556' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R811754556%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R811754556' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wd808EjnTmnWWNEEKeLfzQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'moises@hickle.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.830900"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R125128512' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R125128512%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R125128512' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'fRdhkftxAU5GC0vhQMEQug' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brendan@kiehn.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.852797"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R987464469' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R987464469%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R987464469' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bEbhgA7M5RLVSujy5pvVog' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'geovany_mohr@purdy.info' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.877670"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595022874' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R595022874%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R595022874' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'SSErkpobN4vBbzU0LDnIvQ' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.7ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'louie@ferry.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:22.902657"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R173907586' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R173907586%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R173907586' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JF8l8k79_7ZIUFxzrIkuLQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ransom@weber.us' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:22.979877"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R031532535' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R031532535%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R031532535' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Cq8z-LFtJ9WOUVRQcc82Xw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carlotta@watsica.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.001241"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R619959315' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R619959315%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R619959315' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '-YxSnnPOmhK_tEqZOdqthw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'javier_hettinger@treutelkautzer.co.uk' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.021327"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R518787215' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R518787215%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R518787215' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'KM_c315ymtTh9qCwrluygw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ofelia@goodwinlowe.ca' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.054055"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R994149905' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R994149905%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R994149905' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'D3qutAIS2poO1aSlvD8A5Q' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'roy@treutelwalsh.co.uk' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.072916"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393795032' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R393795032%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R393795032' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'W3zG-8-yZdRmnJ-rUYk27w' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zion@towne.ca' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.099918"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R522415673' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R522415673%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R522415673' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'xiB2h2BrfCnfXnSuHeSSjQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dennis.jacobi@monahancrooks.ca' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.118607"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R377491566' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R377491566%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R377491566' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '16P1qBo69ATAltOCihtFmA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carson_feil@kerlukejohnson.info' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.144185"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R009320362' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R009320362%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R009320362' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'v8aRTVDuRWX17mldvkbJyw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'addie_mcclure@marvin.ca' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.164384"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461047289' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R461047289%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461047289' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a1yUqILWMXowFiRa-yyaug' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'maximo.thiel@graham.co.uk' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.188897"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R690146620' LIMIT 1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R690146620%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R690146620' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'a0d-eS-sqOhFgV9EFJtuzg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'aaliyah.okuneva@ortiz.com' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.227391"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R698144016' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R698144016%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R698144016' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Dyg6VgSMJpYN1riKkrx-Ow' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-6942' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-6942' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-11-12 20:37:23.333290"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.340729' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.342070' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.2ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.356149' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.381563' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.382180' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.383431' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.394678' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.395352' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.397622"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.398896' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.399384' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.400493' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-6942' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.426794' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-4427' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-4427' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.450968' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.452139' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.453546' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.458575' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.459131' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.460276' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.464810' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.465304' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.468180' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.468656' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.469704' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-4427' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.495456' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tierra@stroman.us' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.557440"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R036854987' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R036854987%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R036854987' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'IOk_89GJWbQmKhmAOY1HiQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'LM2EQ5C6' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.579220' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-315053"], ["updated_at", "2014-11-12 20:37:23.580583"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.1ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brando_tremblay@spencerschmeler.us' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.601077"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R042328370' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R042328370%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R042328370' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'zW31h0N19T68_bhjm42VRg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-2531' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-2531' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-3"], ["updated_at", "2014-11-12 20:37:23.630495"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.632762' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.633929' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.635247' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.640947' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.641559' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.642734' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.647314' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.647941' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.650357"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.651156' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.651645' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.652735' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-2531' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.662181' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-7635' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-7635' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.679258' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.680295' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.681520' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.686199' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.686728' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.687796' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.692120' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.692636' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.695676' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.696181' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.697319' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-7635' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.706614' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cecil.okeefe@armstrong.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.731107"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R300789293' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R300789293%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R300789293' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'u7H35iKdnNFPk-lvJSqXEQ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'J952JD7P' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.742841' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-141521"], ["updated_at", "2014-11-12 20:37:23.744039"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (3.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'carolanne@batz.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.759950"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675607647' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R675607647%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R675607647' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hlHFzqpvZDfNjGP4p-jKIw' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.3ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8775' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8775' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-5"], ["updated_at", "2014-11-12 20:37:23.790905"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.793067' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.4ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.794245' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.795828' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.800634' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.801173' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.802266' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.807228' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.808193' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.810744"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.811483' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.811986' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.812988' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8775' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.822679' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9562' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9562' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.839517' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.840800' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.842057' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.847162' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.847674' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.848758' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.853205' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.853708' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.856877' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.857380' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.858523' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9562' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.868135' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'daniela.turcotte@mccullough.name' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:23.892491"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R496106706' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R496106706%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R496106706' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'b9Tdf2IQTZRe07GlRff38Q' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NVTLNTKZ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:23.903977' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-300410"], ["updated_at", "2014-11-12 20:37:23.905226"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'keara.parker@effertzkautzer.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:23.936398"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R039468866' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R039468866%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R039468866' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AORsQV1t3xbzDKMPgIO1VA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-2336' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-2336' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-7"], ["updated_at", "2014-11-12 20:37:23.967394"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.969639' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.970854' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.972164' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:23.977493' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.978098' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.979285' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.984182' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.985161' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:37:23.987738"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:23.988558' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.989052' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:23.990193' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-2336' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.002087' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.2ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-4812' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-4812' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.025389' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.026690' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.028078' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.034135' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.034784' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.036103' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.041249' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.041985' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.045671' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.046211' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.047662' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-4812' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.059318' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.3ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jerrold@murraymedhurst.ca' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.092873"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311979620' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311979620%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311979620' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ZS2CJIB0F4nDLe6nKY4cvw' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QZFVE4C2' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.104421' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-352115"], ["updated_at", "2014-11-12 20:37:24.105564"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (3.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'devante_zemlak@kihndickinson.co.uk' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-12 20:37:24.121858"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R271702549' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R271702549%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R271702549' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'wxcb9krJ_AYTZXni0HFuuQ' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-4768' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-4768' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-9"], ["updated_at", "2014-11-12 20:37:24.149567"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.151813' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.153087' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.154457' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.159852' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.160413' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.161591' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.165987' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.166498' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.168813"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.169566' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.170044' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.171088' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.3ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-4768' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.180417' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7264' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7264' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.198352' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.199385' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.200593' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.205178' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.205692' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.206757' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.211031' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.211538' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.216751' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.217725' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.219767' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7264' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.231041' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.259497' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'bria_corwin@beahanadams.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R046263724' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R046263724%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R046263724' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'R9ZgAMQb0C6WfvepMds_Ug' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '4ESHAPZX' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.281701' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dax.kessler@rowe.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.300765"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579556322' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R579556322%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R579556322' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'AxWHF4wmukXQXqHss1o6WA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-12 20:37:24.319051"], ["name", "ShippingCategory #6"], ["updated_at", "2014-11-12 20:37:24.319051"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 604627' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-7985' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-7985' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m INSERT 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.335100' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.336234' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.337516' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.342771' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.343403' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.344614' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.349202' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.349751' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.352813' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.353320' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.354468' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-7985' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.364111' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-5740' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-5740' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-12"], ["updated_at", "2014-11-12 20:37:24.380695"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.382698' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.383738' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.384987' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-12 20:37:24.389844' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.390380' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.391519' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.395930' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.396471' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-12 20:37:24.398777"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-12 20:37:24.399524' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.400022' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-12 20:37:24.401190' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-5740' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.425743' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.443623' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'flo_renner@mcglynnrodriguez.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-12 20:37:24.454590"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405314487' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R405314487%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405314487' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'dr_IZiQzbLDzcWl05B8Kfw' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'QBXPWC3E' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-12 20:37:24.465751' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-543235"], ["updated_at", "2014-11-12 20:37:24.466926"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (16.4ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rubie@ebertterry.ca' LIMIT 1[0m [1m[35mSQL (6.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (1.0ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.0ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.3ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:46.211056"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.4ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311393603' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R311393603%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R311393603' LIMIT 1[0m [1m[35mSpree::Order Exists (0.7ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vPLZXkBeZq2Y0EtZDEBcVQ' LIMIT 1 [1m[36mSQL (6.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.9ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:46.381389"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-14 23:31:46.381389"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.6ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 411718' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (1.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.2ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.3ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.8ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.9ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-3488' LIMIT 1 [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-3488' LIMIT 1[0m [1m[35mSQL (4.6ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (3.6ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (1.7ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.460236' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.461716' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.7ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.490089' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.3ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.8ms)[0m 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 [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.540429' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.541115' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.542407' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.553816' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.554455' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.557958' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.558429' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.559459' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (2.5ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-3488' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.7ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.6ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.596824' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.7ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.8ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-8461' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-8461' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-14 23:31:46.624828"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.626788' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.627859' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.629107' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.691595' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.692129' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.693273' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.697722' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.699284' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:46.703725"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.704924' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.705663' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.707343' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-8461' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.717987' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.7ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.7ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.0ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'therese_dicki@lockmanwhite.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R511313865' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R511313865%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R511313865' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8FbghShVhD-pNyoKz0ddfQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VV4Q7H8D' LIMIT 1[0m [1m[35mSQL (1.6ms)[0m 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"]] [1m[36mSpree::Payment Load (0.3ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.817287' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.2ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kristin@collier.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:46.853213"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001306278' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001306278%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001306278' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'l1UyZ6XMRINMOs4uvcukXg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:46.869031"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-14 23:31:46.869031"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 452004' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-9412' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-9412' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.883729' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.885237' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.886682' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.891944' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.892517' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.893681' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.898533' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.899720' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.904393' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.905107' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.906657' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-9412' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.916600' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-8057' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-8057' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-14 23:31:46.936302"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.939767' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.941498' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.943234' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:46.948379' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.948898' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.949967' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.954213' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.954761' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:46.957150"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:46.957875' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.958412' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:46.959633' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-8057' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:46.969581' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'abigail@volkmanleuschke.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246737039' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R246737039%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R246737039' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hs-R0qaTkfoVJl7pPXVJkg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PJFNAJ8F' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.006819' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pinkie_emard@runte.biz' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.030246"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R573386215' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R573386215%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R573386215' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'owHEmHwUlUtEw4Q9YFSxAA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:47.045156"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-14 23:31:47.045156"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 977423' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8314' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8314' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.059670' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.060857' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.062180' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.067069' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.067606' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.068853' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.074206' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.075856' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.081538' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.082158' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.083841' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8314' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.094602' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9187' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9187' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-14 23:31:47.110752"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.112788' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.113878' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.115107' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.120166' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.120761' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.122005' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.3ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.127379' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.128933' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.133302"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.134369' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.135112' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.136827' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9187' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.147535' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'willis@gusikowski.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R856120295' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R856120295%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R856120295' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '2YszL5tWODuqu-gaoeiyFQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '6HLWUKDU' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.185099' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'pearlie.goyette@toy.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.219245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417838857' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417838857%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417838857' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'CQDFyiOKU3SqQh_TIM2udQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:47.241778"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-14 23:31:47.241778"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 304797' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-8279' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-8279' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.256177' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.257340' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.258670' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.263472' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.264006' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.265154' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.269728' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.270357' WHERE 1=0[0m [1m[35mSQL (0.4ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.276574' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.277470' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.279225' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-8279' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.291046' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-3928' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-3928' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-14 23:31:47.307197"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.309196' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.310286' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.311507' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.316416' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.316966' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.318116' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.322450' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.322987' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.325368"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.326090' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.326645' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.327810' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-3928' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.337545' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'norwood.smith@wolff.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R658274879' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R658274879%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R658274879' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '4NTD5S0v6DM0QlCprj0sRQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'XW4YTUMX' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.373254' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kallie@huelsdickinson.com' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.392325"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R572375681' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R572375681%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R572375681' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '9bDOL8cngAc52fhB6TrCgg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:47.413105"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-14 23:31:47.413105"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 218599' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-1688' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-1688' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.428996' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.430120' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.431383' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.436288' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.436931' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.438288' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.443079' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.444736' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.450281' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.451013' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.452695' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-1688' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.463644' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.3ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-940' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-940' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-14 23:31:47.483763"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.486588' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.487726' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.489131' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.494220' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.494764' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.496059' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.500609' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.501292' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.503505"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.504177' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.504645' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.505712' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-940' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.514915' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.552219' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'casimir@weimannrosenbaum.co.uk' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:47.564273"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993393116' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R993393116%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993393116' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Q7jz3cVt2e4HizWU9dWR3g' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'WZVVEJG3' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.575629' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-504340"], ["updated_at", "2014-11-14 23:31:47.576819"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (3.8ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'riley.green@mitchell.us' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.3ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:47.595308"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727717626' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R727717626%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R727717626' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pRbUsG2A4C9fXMLIBHPb1Q' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2464' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2464' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-14 23:31:47.627453"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.3ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.629401' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.632332' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.634984' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.2ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.643081' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.643737' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.645119' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.650232' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.650832' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:47.653040"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.653723' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.654202' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.655410' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2464' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.669683' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.1ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-1793' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-1793' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.688904' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.690054' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.691357' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:47.696327' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.696891' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.698125' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.702702' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.704246' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:47.709767' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.710582' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:47.712295' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-1793' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.723117' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.756997' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'myah@powlowski.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R829306385' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R829306385%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R829306385' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'j7wB4--p-CWCIj0F-ElbPg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '8P2J7LTE' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:47.780454' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'marlon_heaney@labadieklein.us' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.138985"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R457940745' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R457940745%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R457940745' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Gr1OQuATG4xCeNjl3A7XVw' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:56.245871"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-14 23:31:56.245871"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 563360' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-8874' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-8874' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.295661' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.296971' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.316330' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.421896' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.422506' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.423716' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.435027' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.435663' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.439066' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.439546' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.440594' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-8874' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.467435' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.3ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-7108' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-7108' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-14 23:31:56.492213"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.494358' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.495442' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.496679' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.501657' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.502165' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.503314' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.507703' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.508211' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.510422"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.511207' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.511729' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.512821' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-7108' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.522378' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jimmy@hartmannkoepp.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015293411' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R015293411%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R015293411' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LBCTudKw0ny3SSrVqk9uKg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'PQA2F5GD' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.622060' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'laurie.gislason@zulaufdonnelly.info' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.650029"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R970987581' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R970987581%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R970987581' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mFBWywME_Jcv9qPFRJPY9g' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:56.671069"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-14 23:31:56.671069"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 130766' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3090' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3090' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.686856' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.688007' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.689333' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.695192' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.695921' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.697245' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.702538' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.703209' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.706502' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.707041' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.708244' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3090' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.721468' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-6202' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-6202' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-14 23:31:56.741109"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.743228' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.744621' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.746147' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.751328' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.751886' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.753056' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.757574' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.758275' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.760759"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.761649' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.762190' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.763327' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-6202' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.772258' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'linwood_borer@jast.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R123347630' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R123347630%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R123347630' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5_bZbYiT4txpBM4D_dEELg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'B6TXFCJ5' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.809496' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'penelope@runolfsdottirkassulke.ca' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:56.834797"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R805169039' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R805169039%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R805169039' LIMIT 1[0m [1m[35mSpree::Order Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7zd_lBnNq_A_mZkt8PdrwQ' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:56.857740"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-14 23:31:56.857740"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 621459' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-7035' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-7035' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.871742' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.872904' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.874219' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.879028' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.879553' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.880627' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.885054' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.885559' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.888450' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.888963' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.890081' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-7035' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.899344' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-9932' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-9932' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-14 23:31:56.934200"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.936378' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.937523' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.938781' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:56.943576' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.944133' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.945252' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.949522' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.950057' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:56.952388"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:56.953154' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.953677' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:56.954861' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-9932' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:56.964363' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'raphaelle@mosciski.com' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R958037401' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R958037401%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R958037401' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'OJX8xrObeORgAloKnaLmaA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'Z4BMXVQQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.000866' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.5ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angelina_ohara@block.co.uk' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.019317"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R426936408' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R426936408%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R426936408' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8h8IXICp30-cAMqH7kbHwQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:57.033485"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-14 23:31:57.033485"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 628638' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-6971' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-6971' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.048660' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.051098' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.053581' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.2ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.060530' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.061147' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.062315' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.067618' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.069060' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.074198' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.074935' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.076618' WHERE 1=0 [1m[36mSQL (0.3ms)[0m [1mUPDATE "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)[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.2ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-6971' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.093540' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-2497' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-2497' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-14 23:31:57.109524"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.111455' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.112506' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.113843' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.119077' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.119653' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.120744' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.124998' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.125530' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.127913"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.128613' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.129100' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.130171' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-2497' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.139632' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'nathaniel.wyman@marks.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R857699617' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R857699617%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R857699617' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'ADP4hC8gwgAiXKTi2q0BYA' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7K6NSBLE' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.175833' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'wellington@vandervort.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.200045"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R955386740' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R955386740%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R955386740' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pajyQigYXcI_4jHRkJ3EhA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:31:57.216422"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-14 23:31:57.216422"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 248887' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-6785' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-6785' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.236247' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.237501' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.238788' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.243744' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.244302' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.245468' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.250541' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.252187' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.257920' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.258714' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.260453' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-6785' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.271222' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-9545' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-9545' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-14 23:31:57.288381"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.290330' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.291488' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.292840' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.301110' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.302177' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.304019' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.310989' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.311746' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.314179"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.314877' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.315357' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.316584' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-9545' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.326914' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.356839' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'rosanna@bayerkuhlman.biz' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:31:57.368452"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R218426451' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R218426451%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R218426451' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '87c_EzB7UAugvAvr3JCOmA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JTFAHYJB' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.380037' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-110254"], ["updated_at", "2014-11-14 23:31:57.381321"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'mona@doyle.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:31:57.402301"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163046636' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R163046636%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R163046636' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'hzO2nzCPYoJtkvIs2ppj_A' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-3995' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-3995' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-14 23:31:57.447529"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.449660' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.450821' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.452155' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.457319' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.457893' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.459057' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.463463' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.463962' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:31:57.468780"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.470170' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.471071' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.472802' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-3995' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.484048' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-3606' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-3606' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.502293' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.503358' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.504613' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:31:57.509540' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.510090' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.511262' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.516282' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.517803' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:31:57.523249' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.524009' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:31:57.525705' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-3606' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.2ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.538227' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.558543' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'cristobal_reilly@lednerabernathy.co.uk' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461082212' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R461082212%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R461082212' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JB6SwzkNJHVYlPsQMmqOPg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '5JVESKES' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:31:57.581192' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'emmanuel_beer@cummerata.biz' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.245313"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R501902028' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R501902028%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R501902028' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'UPNoDNlz94Fs3FA44-DYig' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:34:27.352257"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-14 23:34:27.352257"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 222156' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-9109' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-9109' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.399579' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.400874' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.414600' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.519497' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.520100' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.521296' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.2ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.532899' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.533650' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.538504' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.539311' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.540904' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-9109' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.568294' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.2ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-3409' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-3409' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-14 23:34:27.594291"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.596920' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.598390' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.599767' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.605623' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.606261' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.607677' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.613050' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.613814' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.616377"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.617216' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.617733' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.618859' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-3409' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.628726' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.2ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.3ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.2ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'patricia_rau@cummingsvandervort.info' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R309903633' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R309903633%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R309903633' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_QNvPJUFs7RW84B0tN5Y0A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'EW324WAA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.721797' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.1ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'allene.graham@wildermanoga.ca' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.744623"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R149435140' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R149435140%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R149435140' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'qkHZaFP2Ly1qLiDF8r8FGw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:34:27.760201"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-14 23:34:27.760201"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 306567' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-3690' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-3690' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.774250' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.775501' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.777070' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.782281' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.782826' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.783926' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.788170' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.788694' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.791755' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.792273' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.793380' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-3690' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.802776' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.2ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-9282' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-9282' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-14 23:34:27.824484"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.826575' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.827621' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.828791' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.833485' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.833992' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.835053' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.839221' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.839730' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:34:27.843748"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.845052' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.846009' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.848003' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-9282' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.859241' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'alessia@walter.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R183364663' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R183364663%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R183364663' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rMyiKRgnD99t-c4Snfz89A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'V27Y78GZ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.894123' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lindsay@emmerich.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:27.917520"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R035555903' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R035555903%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R035555903' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'GXFSo7sX6-WQu_4ShuLu8Q' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:34:27.933355"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-14 23:34:27.933355"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 917906' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-8335' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-8335' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.947688' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.948854' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.950130' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:27.955064' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.955602' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.956706' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.961254' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.961805' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:27.964887' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.965386' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:27.966494' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-8335' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:27.975731' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-6905' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-6905' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-14 23:34:28.006173"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.008141' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.009239' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.010438' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.015231' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.015721' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.016812' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.021007' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.021555' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.023853"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.024612' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.025109' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.026254' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-6905' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.035406' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'tina_dicki@oberbrunner.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R943656439' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R943656439%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R943656439' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'EMLql2K3g0UTlsb8ibx_Vw' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'BSQN3BAY' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.070881' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ulices@harris.ca' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.4ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.092241"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R601666304' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R601666304%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R601666304' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'tQ-PbgpOMIzN4sxGQIIQUQ' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:34:28.111138"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-14 23:34:28.111138"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 788429' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-3106' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-3106' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.125900' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.127212' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.128584' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.133595' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.134119' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.135207' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.140353' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.141968' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.147466' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.148238' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.149914' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-3106' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.160625' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-177' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-177' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-14 23:34:28.178228"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.180216' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.181300' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.182470' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.187367' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.187889' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.188994' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.193391' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.193931' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.198305"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.199654' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.200662' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.202325' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-177' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.213202' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'merlin_hickle@gerlach.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R155771652' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R155771652%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R155771652' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'nScQ9M3z-rprx65xjeWrUQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'JASY87HX' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.250411' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (3.8ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brendan_mertz@reynolds.us' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.269671"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399708429' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R399708429%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R399708429' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'f1wFEJRW-zII7sQe8majuQ' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.2ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-14 23:34:28.290555"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-14 23:34:28.290555"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 983075' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-9431' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-9431' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.306097' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.307212' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.308503' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.313799' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.314379' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.315588' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.320491' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.322147' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.327890' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.328653' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.330356' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-9431' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.340965' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-7225' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-7225' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-14 23:34:28.356995"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.359061' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.360161' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.361490' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.366359' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.366868' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.367974' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.372231' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.372750' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.375033"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.375764' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.376290' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.377468' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-7225' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.387241' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.416942' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'norberto@schowalter.co.uk' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-14 23:34:28.428949"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R352425296' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R352425296%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R352425296' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'VR-b3wk-UdyVHnMcVD-1Yg' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '76Q2CVMZ' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.440936' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-022000"], ["updated_at", "2014-11-14 23:34:28.442234"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'sally@hamill.ca' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-14 23:34:28.465991"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R783284285' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R783284285%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R783284285' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'kZ1BjNHAEqaezyL93yJGYA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-2193' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-2193' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-14 23:34:28.509988"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.512198' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.513400' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.514787' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.519904' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.520430' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.521509' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.526105' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.526628' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-14 23:34:28.528985"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.529721' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.530238' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.531381' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-2193' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.541180' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-8795' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-8795' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.560159' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.561219' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.562392' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-14 23:34:28.567344' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.567901' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.568991' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.573352' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.573919' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-14 23:34:28.577106' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.577614' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-14 23:34:28.578794' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-8795' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.588306' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.611195' WHERE "spree_orders"."id" = 1 [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'vicky.keebler@breitenbergfriesen.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R157461006' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R157461006%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R157461006' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Weh-o_UYgCEsf6LL2aVdDQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NKD77T7P' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-14 23:34:28.635262' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (10.9ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'yvonne_runte@lang.info' LIMIT 1[0m [1m[35mSQL (6.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.7ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (16.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.098227"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (3.3ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405979900' LIMIT 1[0m [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R405979900%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R405979900' LIMIT 1[0m [1m[35mSpree::Order Exists (0.7ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jZFubDyHkCQpkX6xHQk39A' LIMIT 1 [1m[36mSQL (6.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (1.0ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-17 22:36:20.321555"], ["name", "ShippingCategory #1"], ["updated_at", "2014-11-17 22:36:20.321555"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.6ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 704698' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (1.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.2ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (4.6ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.8ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (2.3ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1887' LIMIT 1 [1m[36mSpree::Product Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1887' LIMIT 1[0m [1m[35mSQL (5.0ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (3.6ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (2.0ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.418045' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.419831' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.7ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.436126' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (1.0ms)[0m 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 [1m[36mSQL (3.7ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.546545' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.547903' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.549916' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.563418' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.564067' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.567501' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.568014' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.569099' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (3.6ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1887' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.8ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.7ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.605909' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.8ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.6ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-2-6676' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-2-6676' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-2' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-2"], ["updated_at", "2014-11-17 22:36:20.630306"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.632254' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.633314' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.634539' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.639121' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.639594' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.640639' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.644786' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.645290' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-17 22:36:20.647440"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.648171' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.648659' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.649740' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-2-6676' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.658678' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.7ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.9ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.2ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (2.4ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ignatius@glover.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837958995' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R837958995%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R837958995' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'y33G2cdI4DUXBFgZW1LcYQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'VMA87PA5' LIMIT 1[0m [1m[35mSQL (1.4ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.753026' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.2ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.2ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'joel_hessel@robel.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.810897"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R602418194' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R602418194%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R602418194' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'YhU2z1TgXlSl6EzFdFhcXw' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-17 22:36:20.825185"], ["name", "ShippingCategory #2"], ["updated_at", "2014-11-17 22:36:20.825185"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 811366' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-3-8326' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-3-8326' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-3' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.843648' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.1ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.845137' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.846620' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.852383' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.852952' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.854133' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.858438' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.859483' WHERE 1=0[0m [1m[35mSQL (0.3ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.865467' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.866219' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.867809' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-3-8326' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.878317' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-4-3624' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-4-3624' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-4' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-4"], ["updated_at", "2014-11-17 22:36:20.894462"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.896395' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.897446' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.898631' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:20.903148' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.903643' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.904732' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.908885' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.909420' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.2ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-17 22:36:20.913071"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:20.914541' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.915508' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:20.917577' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-4-3624' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.928680' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hildegard.gerlach@harber.name' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R182357258' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R182357258%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R182357258' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'JPuRYHa7Kl3JT6Xl73K4pg' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'UK2B6UNJ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:20.964624' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.6ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'francisca_murray@kuhicmacejkovic.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:20.988416"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001265179' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R001265179%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R001265179' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '6d3mzQDWdUibkAAObrXhng' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-17 22:36:21.004594"], ["name", "ShippingCategory #3"], ["updated_at", "2014-11-17 22:36:21.004594"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 321238' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-5-2389' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-5-2389' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-5' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.018847' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.019998' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.021262' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.025985' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.026503' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.027594' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.031886' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.032414' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.035320' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.035842' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.036946' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-5-2389' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.060505' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-6-3855' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-6-3855' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-6' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-6"], ["updated_at", "2014-11-17 22:36:21.076445"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.078366' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.079408' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.080621' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.085188' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.085713' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.086819' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.091228' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.091797' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.094082"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.094788' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.095278' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.096325' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-6-3855' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.105538' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'isabella_miller@cassinstokes.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R158649672' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R158649672%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R158649672' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XWGYxKRKB3hUP8-X38Sg3A' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '7HJEJ947' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.141283' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jesse_leuschke@grady.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.165065"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R307650590' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R307650590%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R307650590' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '_sDX9g-VA8oxGlq7ufghfQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-17 22:36:21.181300"], ["name", "ShippingCategory #4"], ["updated_at", "2014-11-17 22:36:21.181300"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 14757' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-7-7195' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-7-7195' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-7' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.195547' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.196678' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.197950' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.2ms)[0m 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 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.206089' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.207056' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.1ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.208962' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.2ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.216006' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.216699' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.219499' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.219994' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.221001' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-7-7195' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.230755' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-8-1285' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-8-1285' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-8' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-8"], ["updated_at", "2014-11-17 22:36:21.247552"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.249476' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.250560' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.251794' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.256391' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.256903' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.258057' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.262416' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.262956' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.265194"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.265965' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.266503' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.267702' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-8-1285' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.277193' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'ted.botsford@green.us' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R431584601' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R431584601%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R431584601' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'NVXTd7hwzfZn5Mt9tDMH7g' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = '9TJQ8XWW' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.1ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.313855' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.0ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (4.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kelsi.dare@graham.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.338297"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R078955218' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R078955218%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R078955218' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'oZW5R_R5oikCvqIcA13dtg' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_shipping_categories" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-17 22:36:21.353024"], ["name", "ShippingCategory #5"], ["updated_at", "2014-11-17 22:36:21.353024"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_tax_categories" WHERE ("spree_tax_categories"."name" = 'TaxCategory - 339344' AND "spree_tax_categories"."deleted_at" IS NULL) LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1[0m [1m[35mSpree::State Load (0.1ms)[0m SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1 [["country_id", 1]] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-9-5014' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-9-5014' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-9' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.368976' WHERE "spree_variants"."id" = 1[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.370293' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.371651' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.376735' WHERE "spree_variants"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.377286' WHERE "spree_products"."id" = 1[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.378423' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.2ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.382905' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.384046' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.390195' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.390976' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.392697' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.0ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-9-5014' AND "spree_products"."id" != 1) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.403827' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::ShippingCategory Load (0.1ms)[0m [1mSELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-10-5686' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-10-5686' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-10' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 2], ["sku", "SKU-10"], ["updated_at", "2014-11-17 22:36:21.419106"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.421049' WHERE "spree_variants"."id" = 2 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.422116' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.423371' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.427992' WHERE "spree_variants"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.428570' WHERE "spree_products"."id" = 2 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.429850' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.434325' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.434875' WHERE 1=0 [1m[36mSQL (0.4ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 2[0m [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.439247"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.440569' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.441408' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.443094' WHERE 1=0[0m [1m[35mSQL (0.2ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-10-5686' AND "spree_products"."id" != 2) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.453782' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::LineItem Load (0.1ms)[0m SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed'[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order')) [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (2.2ms)[0m [1mINSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m 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' [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "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'[0m [1m[35mSQL (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.488503' WHERE "spree_orders"."id" = 1[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_credit_cards" ("created_at", "last_digits", "month", "name", "updated_at", "year") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'madisyn.ziemann@larson.info' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-11-17 22:36:21.502117"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R899084944' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R899084944%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R899084944' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '5mTv6rr7sOVWwloK2zaBZA' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Payment Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'YHJ78PPF' LIMIT 1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payments" ("amount", "created_at", "identifier", "order_id", "payment_method_id", "response_code", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Payment Load (0.0ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.513903' WHERE "spree_orders"."id" = 2[0m [1m[35mSpree::CreditCard Load (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_credit_cards" SET "gateway_customer_profile_id" = ?, "updated_at" = ? WHERE "spree_credit_cards"."id" = 1[0m [["gateway_customer_profile_id", "BGS-554104"], ["updated_at", "2014-11-17 22:36:21.515217"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Variant Load (0.0ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Shipment Load (0.0ms)[0m SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (4.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'euna.predovic@huelschamplin.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-11-17 22:36:21.532142"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993035555' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R993035555%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R993035555' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7jRLNUJdarqFBZnPczJkEw' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.1ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.2ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-11-8403' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-11-8403' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-11' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-11"], ["updated_at", "2014-11-17 22:36:21.575498"]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.577498' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.578618' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.579903' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.584780' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.585329' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.586460' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.0ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.590865' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.591432' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-11-17 22:36:21.593862"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.594602' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.595134' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.596314' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.0ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.1ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.1ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_line_items" ("cost_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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-11-8403' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.606266' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.0ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "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 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1[0m [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "spree_stock_locations" [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-12-2943' LIMIT 1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-12-2943' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Variant Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-12' AND "spree_variants"."deleted_at" IS NULL LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSpree::Variant Load (0.1ms)[0m [1mSELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?) [["amount", 19.99], ["currency", "USD"], ["variant_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.623094' WHERE "spree_variants"."id" = 2[0m [1m[35mSpree::Product Load (0.0ms)[0m SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.624126' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.625372' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::StockLocation Load (0.1ms)[0m [1mSELECT "spree_stock_locations".* FROM "spree_stock_locations"[0m [1m[35mSpree::StockItem Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_stock_items" ("backorderable", "created_at", "stock_location_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?)[0m [["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]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-11-17 22:36:21.629939' WHERE "spree_variants"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.630436' WHERE "spree_products"."id" = 2[0m [1m[35mSpree::Taxon Load (0.0ms)[0m SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.631520' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.0ms)[0m [1mSELECT MAX("spree_variants"."position") AS max_id FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f'[0m [["product_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 2 [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.635837' WHERE "spree_products"."id" = 2 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.636375' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSpree::Variant Exists (0.2ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36mSQL (0.2ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-11-17 22:36:21.641637' WHERE "spree_products"."id" = 2[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.642650' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-11-17 22:36:21.644714' WHERE 1=0 [1m[36mSQL (0.2ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] [1m[36m (0.1ms)[0m [1mSELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSpree::StockItem Load (0.1ms)[0m SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-12-2943' AND "spree_products"."id" != 2) LIMIT 1 [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.656030' WHERE "spree_orders"."id" = 1 [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at[0m [["order_id", 1]] [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't'[0m [["adjustable_id", 2], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.0ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" 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"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::LineItem Load (0.1ms)[0m [1mSELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 1 OR (adjustable_id = 1 AND adjustable_type = 'Spree::Order'))[0m [1m[35m (0.0ms)[0m SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.0ms)[0m SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 1]] [1m[36m (0.0ms)[0m [1mSELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSQL (0.1ms)[0m 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 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Adjustment Load (0.0ms)[0m [1mSELECT "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[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = '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"]] [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "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'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m 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' [1m[36mSQL (0.1ms)[0m [1mUPDATE "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[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.674813' WHERE "spree_orders"."id" = 1 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_payment_methods" ("created_at", "environment", "name", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'angeline@maggio.ca' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R779765466' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R779765466%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R779765466' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lIsuZYcxzwlbPSU5ar_iCQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Payment Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."identifier" = 'NK6QGFMQ' LIMIT 1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36mSpree::Payment Load (0.0ms)[0m [1mSELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'checkout' AND (id != 1) ORDER BY spree_payments.created_at[0m [["order_id", 2]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_orders" SET "updated_at" = '2014-11-17 22:36:21.697405' WHERE "spree_orders"."id" = 2 [1m[36mSpree::CreditCard Load (0.1ms)[0m [1mSELECT "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[0m [1m[35mSQL (0.0ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSpree::Variant Load (0.0ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] [1m[36mSpree::Product Load (0.0ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 2]] [1m[35mSpree::Adjustment Load (0.1ms)[0m 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"]] [1m[36mSpree::Shipment Load (0.0ms)[0m [1mSELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ?[0m [["order_id", 1]] [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 1]] [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ?[0m [["adjustable_id", 1], ["adjustable_type", "Spree::Order"]] [1m[35m (4.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m rollback transaction [1m[36m (0.0ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zane.heathcote@kuhlmandurgan.name' LIMIT 1[0m [1m[35mSQL (0.6ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (1.5ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.565177"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.5ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586547981' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R586547981%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R586547981' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'lK8PpYbbrAVPc0b-Euq4jQ' LIMIT 1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'turner@brekke.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.682580"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R620429249' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R620429249%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R620429249' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'LVWSw0jli23F3fS-9F72gA' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shany@kutchfeeney.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.703190"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R654417107' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R654417107%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R654417107' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DH1f95Q1gjp_xWr70BAneQ' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kristopher@dickens.ca' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.728566"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R476395078' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R476395078%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R476395078' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7X_6o0o65PK4BVJEhAkJ0A' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (45.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'candace.gorczany@goyette.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.795904"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417099420' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R417099420%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R417099420' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Mk2xiUDQHZly_M7TYRrGIQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (59.3ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'zella.wintheiser@larkin.com' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:26.876106"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R315353333' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R315353333%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R315353333' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'F8F_arC4I61kYVHnfsDkhQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (81.1ms)[0m rollback transaction [1m[36m (0.2ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reed_medhurst@veum.co.uk' LIMIT 1[0m [1m[35mSQL (0.4ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:26.982292"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002212359' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R002212359%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R002212359' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XM8kbT3FqK18I27MwBRg9Q' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (93.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'dora.thompson@rogahn.biz' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.091612"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R687083407' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R687083407%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R687083407' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'vgI_kEd7UtGi8Z7MvYk7mw' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (124.4ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'fausto@kassulke.co.uk' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.244606"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R725711006' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R725711006%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R725711006' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '8_eHh17OkwmGnDNLRkP-1w' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (198.6ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hettie@marvinpowlowski.ca' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.464488"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R333742841' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R333742841%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R333742841' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'XxewUThc-dtvmGKH__1b4Q' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (141.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'barney@cormier.us' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.629679"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R936182238' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R936182238%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R936182238' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'mMZHnggf21b5cXpmV9S5nA' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.7ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'hassan_swaniawski@streich.info' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.649245"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R542207827' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R542207827%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R542207827' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'h6bqz6Dw_dGC1SFeBTumYg' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.1ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lionel.conroy@hudson.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.731554"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R318078996' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R318078996%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R318078996' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'MuZfcSiL37xIxf9SKNU3uQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'jess@wolff.name' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.749766"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R838931126' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R838931126%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R838931126' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'BQSbVig7VlP9IBD3EjUlwQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'lisa_kunze@roob.name' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.774643"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R992714998' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R992714998%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R992714998' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '0kDqcjeBtChBPjUif5xNpA' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'monroe@fritschgrimes.name' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.797633"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716858623' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R716858623%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R716858623' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'PDx7HkVOUCL93nKn7KAmjQ' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.2ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'amely@boylebernier.name' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.818432"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R192680042' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R192680042%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R192680042' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'jeF9Lq_hfy4W4FkDggOoDw' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (1.9ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'reece_gottlieb@wiza.com' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.837281"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R259486449' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R259486449%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R259486449' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = '7OnEBs2rLgJ0U_1i_mRu4g' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (2.3ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'brennon.watsica@schinner.com' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.867103"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R228338954' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R228338954%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R228338954' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'g7-6czEbngSB78L0MMRXmQ' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (2.2ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.2ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'kory@lesch.name' LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.886182"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153381900' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R153381900%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R153381900' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bGGj9-YUYSeetiWs-xVz0A' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (3.0ms)[0m rollback transaction [1m[36m (0.1ms)[0m [1mbegin transaction[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'shayne@ortizkuhic.biz' LIMIT 1[0m [1m[35mSQL (0.2ms)[0m 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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::Country Load (0.1ms)[0m SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.6ms)[0m INSERT INTO "spree_countries" ("iso", "iso3", "iso_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_states" ("abbr", "country_id", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["abbr", "AL"], ["country_id", 1], ["name", "Alabama"], ["updated_at", "2014-12-02 16:29:27.911148"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.2ms)[0m INSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_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"]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R700753177' LIMIT 1[0m [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R700753177%') [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R700753177' LIMIT 1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'bwSuvVEQc1ghkvFt0nos5w' LIMIT 1 [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "spree_orders" ("bill_address_id", "created_at", "currency", "email", "guest_token", "number", "state", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (3.5ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.1ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.0ms)[0m [1mrollback transaction[0m [1m[35m (0.0ms)[0m begin transaction [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::User Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_users" WHERE "spree_users"."email" = 'katarina@weber.com' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_users" ("authentication_token", "created_at", "email", "encrypted_password", "login", "password_salt", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36mSpree::Country Load (0.1ms)[0m [1mSELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = 840 LIMIT 1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_countries" ("iso", "iso3", "iso_name", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["iso", "US"], ["iso3", "USA"], ["iso_name", "UNITED STATES"], ["name", "United States of America"], ["numcode", 840], ["updated_at", "2014-12-02 16:29:27.989225"]] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "spree_addresses" ("address1", "address2", "alternative_phone", "city", "company", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R721217942' LIMIT 1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R721217942%')[0m [1m[35mSpree::Order Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R721217942' LIMIT 1 [1m[36mSpree::Order Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'rjxv406udI_WLPT6zvkyqg' LIMIT 1[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::ShippingCategory Load (0.1ms)[0m SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSQL (0.1ms)[0m 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"]] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Load (0.1ms)[0m SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL ORDER BY "spree_tax_categories"."id" ASC LIMIT 1 [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m [1m[35mSpree::TaxCategory Exists (0.1ms)[0m 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 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_tax_categories" ("created_at", "description", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1 [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "spree_stock_locations"[0m [1m[35mSpree::Country Load (0.2ms)[0m SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT 1 [1m[36mSpree::State Load (0.2ms)[0m [1mSELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" = ? ORDER BY name ASC LIMIT 1[0m [["country_id", 1]] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_stock_locations" ("address1", "backorderable_default", "city", "country_id", "created_at", "name", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1000 [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."id" IS NOT NULL) AND "spree_products"."slug" = 'product-1-1280' LIMIT 1[0m [1m[35mSpree::Product Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."slug" = 'product-1-1280' LIMIT 1 [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "spree_products" ("available_on", "created_at", "description", "name", "shipping_category_id", "slug", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]] [1m[35mSpree::Variant Exists (0.1ms)[0m SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."sku" = 'SKU-1' AND "spree_variants"."deleted_at" IS NULL LIMIT 1 [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_variants" ("cost_currency", "cost_price", "product_id", "sku", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["cost_currency", "USD"], ["cost_price", 17.0], ["product_id", 1], ["sku", "SKU-1"], ["updated_at", "2014-12-02 16:29:28.171226"]] [1m[35mSpree::Variant Load (0.1ms)[0m SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "spree_prices" ("amount", "currency", "variant_id") VALUES (?, ?, ?)[0m [["amount", 19.99], ["currency", "USD"], ["variant_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.179255' WHERE "spree_variants"."id" = 1 [1m[36mSpree::Product Load (0.1ms)[0m [1mSELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.180602' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.1ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.217816' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::StockLocation Load (0.1ms)[0m SELECT "spree_stock_locations".* FROM "spree_stock_locations" [1m[36mSpree::StockItem Exists (0.1ms)[0m [1mSELECT 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[0m [1m[35mSQL (0.3ms)[0m 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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "updated_at" = '2014-12-02 16:29:28.242846' WHERE "spree_variants"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.243464' WHERE "spree_products"."id" = 1 [1m[36mSpree::Taxon Load (0.0ms)[0m [1mSELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ?[0m [["product_id", 1]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.244774' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35m (0.1ms)[0m SELECT MAX("spree_variants"."position") AS max_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]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "position" = 1 WHERE "spree_variants"."id" = 1[0m [1m[35m (0.3ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.258113' WHERE "spree_products"."id" = 1[0m [1m[35mSQL (0.1ms)[0m UPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.258738' WHERE 1=0 [1m[36mSQL (0.1ms)[0m [1mUPDATE "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)[0m [1m[35mSpree::Variant Exists (0.1ms)[0m 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 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_variants" SET "is_master" = ?, "updated_at" = ? WHERE "spree_variants"."id" = 1[0m [["is_master", "t"], ["updated_at", "2014-12-02 16:29:28.261070"]] [1m[35mSQL (0.1ms)[0m UPDATE "spree_products" SET "updated_at" = '2014-12-02 16:29:28.262292' WHERE "spree_products"."id" = 1 [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.262820' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36mSQL (0.0ms)[0m [1mUPDATE "spree_taxons" SET "updated_at" = '2014-12-02 16:29:28.263867' WHERE 1=0[0m [1m[35mSQL (0.1ms)[0m 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) [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m [1m[35m (0.1ms)[0m SAVEPOINT active_record_1 [1m[36mSpree::TaxCategory Load (0.1ms)[0m [1mSELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1[0m [["id", 1]] [1m[35m (0.2ms)[0m SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' [1m[36mSpree::StockItem Load (0.2ms)[0m [1mSELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'[0m [1m[35mSQL (0.3ms)[0m INSERT INTO "spree_line_items" ("cost_price", "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]] [1m[36mSpree::Product Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."slug" = 'product-1-1280' AND "spree_products"."id" != 1) LIMIT 1[0m [1m[35mSpree::Zone Load (0.1ms)[0m SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[36mSQL (0.1ms)[0m [1mUPDATE "spree_orders" SET "updated_at" = '2014-12-02 16:29:28.296897' WHERE "spree_orders"."id" = 1[0m [1m[35mSpree::Payment Load (0.2ms)[0m SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 1]] [1m[36mSpree::Zone Load (0.1ms)[0m [1mSELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1[0m [1m[35mSpree::Adjustment Load (0.1ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [1m[36mSpree::Adjustment Load (0.1ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate'[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.3ms)[0m SELECT "spree_adjustments".* FROM "spree_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"]] [1m[36mSpree::Adjustment Load (0.3ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1[0m [["adjustable_id", 1], ["adjustable_type", "Spree::LineItem"]] [1m[35mSpree::Adjustment Load (0.2ms)[0m SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_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"]] [1m[36mSpree::Adjustment Load (0.2ms)[0m [1mSELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f'[0m [["adj